mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Allow passing the process Context
to syscall handlers
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
19ad2a2eb4
commit
66a37da214
@ -5,7 +5,7 @@ use core::time::Duration;
|
||||
use super::SyscallReturn;
|
||||
use crate::{prelude::*, time::timer::Timeout};
|
||||
|
||||
pub fn sys_alarm(seconds: u32) -> Result<SyscallReturn> {
|
||||
pub fn sys_alarm(seconds: u32, _ctx: &Context) -> Result<SyscallReturn> {
|
||||
debug!("seconds = {}", seconds);
|
||||
|
||||
let current = current!();
|
||||
|
Reference in New Issue
Block a user