Fix a typo: sys_sigreturn

This commit is contained in:
Yifan Wu 2022-12-09 23:12:23 +08:00
parent 938568ead8
commit d11ee19733
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ pub fn syscall(syscall_id: usize, args: [usize; 3]) -> isize {
args[2] as *mut SignalAction, args[2] as *mut SignalAction,
), ),
SYSCALL_SIGPROCMASK => sys_sigprocmask(args[0] as u32), SYSCALL_SIGPROCMASK => sys_sigprocmask(args[0] as u32),
SYSCALL_SIGRETURN => sys_sigretrun(), SYSCALL_SIGRETURN => sys_sigreturn(),
SYSCALL_GET_TIME => sys_get_time(), SYSCALL_GET_TIME => sys_get_time(),
SYSCALL_GETPID => sys_getpid(), SYSCALL_GETPID => sys_getpid(),
SYSCALL_FORK => sys_fork(), SYSCALL_FORK => sys_fork(),

View File

@ -137,7 +137,7 @@ pub fn sys_sigprocmask(mask: u32) -> isize {
} }
} }
pub fn sys_sigretrun() -> isize { pub fn sys_sigreturn() -> isize {
if let Some(task) = current_task() { if let Some(task) = current_task() {
let mut inner = task.inner_exclusive_access(); let mut inner = task.inner_exclusive_access();
inner.handling_sig = -1; inner.handling_sig = -1;