summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2010-08-11 14:34:45 -0400
committerRobert Morris <[email protected]>2010-08-11 14:34:45 -0400
commit789b508d538e6faf635e49f268a4f1f9e9b65f05 (patch)
tree9515f6123cf72da77c7ebf0b4ac532c700dff30b /syscall.c
parent83d2db91f75460e1275d67847adec0fca5a9800b (diff)
downloadxv6-labs-789b508d538e6faf635e49f268a4f1f9e9b65f05.tar.gz
xv6-labs-789b508d538e6faf635e49f268a4f1f9e9b65f05.tar.bz2
xv6-labs-789b508d538e6faf635e49f268a4f1f9e9b65f05.zip
uptime() sys call for benchmarking
increase PHYSTOP
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/syscall.c b/syscall.c
index ce79dbd..9296cff 100644
--- a/syscall.c
+++ b/syscall.c
@@ -100,6 +100,7 @@ extern int sys_sleep(void);
extern int sys_unlink(void);
extern int sys_wait(void);
extern int sys_write(void);
+extern int sys_uptime(void);
static int (*syscalls[])(void) = {
[SYS_chdir] sys_chdir,
@@ -122,6 +123,7 @@ static int (*syscalls[])(void) = {
[SYS_unlink] sys_unlink,
[SYS_wait] sys_wait,
[SYS_write] sys_write,
+[SYS_uptime] sys_uptime,
};
void