mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-23 01:46:24 +04:00
Fix a typo: sys_sigreturn
This commit is contained in:
parent
938568ead8
commit
d11ee19733
@ -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(),
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user