From 95692c4a8cf38765bac15b05d7a898e4ac8946e8 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 22 Aug 2012 20:28:58 -0400 Subject: Remove left-over from some logging plan making complete syscalls atomic 0 is not a system call (thanks to Peter Froehlich) --- syscall.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'syscall.c') diff --git a/syscall.c b/syscall.c index 45f758e..799ebc2 100644 --- a/syscall.c +++ b/syscall.c @@ -129,9 +129,7 @@ syscall(void) int num; num = proc->tf->eax; - if(num >= 0 && num < SYS_open && syscalls[num]) { - proc->tf->eax = syscalls[num](); - } else if (num >= SYS_open && num < NELEM(syscalls) && syscalls[num]) { + if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { proc->tf->eax = syscalls[num](); } else { cprintf("%d %s: unknown sys call %d\n", -- cgit v1.2.3