diff options
author | Mole Shang <[email protected]> | 2024-01-18 17:35:27 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2024-01-18 17:35:27 +0800 |
commit | 493159b9bb1a764926daa49fb09bff8f29e8e9e5 (patch) | |
tree | bcae49e20df0ab9d86dab9bd10226807cc432f88 /user | |
parent | 33ca12a4653752d179e6296c7ca2f91a626d30f3 (diff) | |
download | xv6-labs-syscall.tar.gz xv6-labs-syscall.tar.bz2 xv6-labs-syscall.zip |
lab syscall: finishsyscall
Diffstat (limited to 'user')
-rw-r--r-- | user/user.h | 3 | ||||
-rwxr-xr-x | user/usys.pl | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/user/user.h b/user/user.h index 4d398d5..14f69e5 100644 --- a/user/user.h +++ b/user/user.h @@ -1,4 +1,5 @@ struct stat; +struct sysinfo; // system calls int fork(void); @@ -22,6 +23,8 @@ int getpid(void); char* sbrk(int); int sleep(int); int uptime(void); +int trace(int); +int sysinfo(struct sysinfo*); // ulib.c int stat(const char*, struct stat*); diff --git a/user/usys.pl b/user/usys.pl index 01e426e..bc109fd 100755 --- a/user/usys.pl +++ b/user/usys.pl @@ -36,3 +36,5 @@ entry("getpid"); entry("sbrk"); entry("sleep"); entry("uptime"); +entry("trace"); +entry("sysinfo"); |