syscall lab need to finish

This commit is contained in:
2025-03-25 01:13:50 +08:00
parent e33ff43dd6
commit d92eea9e49
12 changed files with 193 additions and 87 deletions

View File

@@ -91,3 +91,13 @@ sys_uptime(void)
release(&tickslock);
return xticks;
}
uint64
sys_trace(void)
{
int n;
argint(0, &n);
if(n<0) return -1;
myproc()->tracemask = n;
return 0;
}