mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Allow passing the process Context
to syscall handlers
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
19ad2a2eb4
commit
66a37da214
@ -9,7 +9,14 @@ use crate::{
|
||||
},
|
||||
};
|
||||
|
||||
pub fn sys_prctl(option: i32, arg2: u64, arg3: u64, arg4: u64, arg5: u64) -> Result<SyscallReturn> {
|
||||
pub fn sys_prctl(
|
||||
option: i32,
|
||||
arg2: u64,
|
||||
arg3: u64,
|
||||
arg4: u64,
|
||||
arg5: u64,
|
||||
_ctx: &Context,
|
||||
) -> Result<SyscallReturn> {
|
||||
let prctl_cmd = PrctlCmd::from_args(option, arg2, arg3, arg4, arg5)?;
|
||||
debug!("prctl cmd = {:x?}", prctl_cmd);
|
||||
let current_thread = current_thread!();
|
||||
|
Reference in New Issue
Block a user