Allow passing the process Context to syscall handlers

This commit is contained in:
Zhang Junyang
2024-08-04 06:37:50 +00:00
committed by Tate, Hongliang Tian
parent 19ad2a2eb4
commit 66a37da214
137 changed files with 870 additions and 491 deletions

View File

@ -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 = {