mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13: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
@ -3,7 +3,7 @@
|
||||
use super::SyscallReturn;
|
||||
use crate::{prelude::*, time::SystemTime};
|
||||
|
||||
pub fn sys_time(tloc: Vaddr) -> Result<SyscallReturn> {
|
||||
pub fn sys_time(tloc: Vaddr, _ctx: &Context) -> Result<SyscallReturn> {
|
||||
debug!("tloc = 0x{tloc:x}");
|
||||
|
||||
let now_as_secs = {
|
||||
|
Reference in New Issue
Block a user