Remove left-over from some logging plan making complete syscalls atomic
0 is not a system call (thanks to Peter Froehlich)
This commit is contained in:
parent
432acbaf9e
commit
95692c4a8c
|
@ -129,9 +129,7 @@ syscall(void)
|
||||||
int num;
|
int num;
|
||||||
|
|
||||||
num = proc->tf->eax;
|
num = proc->tf->eax;
|
||||||
if(num >= 0 && num < SYS_open && syscalls[num]) {
|
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
|
||||||
proc->tf->eax = syscalls[num]();
|
|
||||||
} else if (num >= SYS_open && num < NELEM(syscalls) && syscalls[num]) {
|
|
||||||
proc->tf->eax = syscalls[num]();
|
proc->tf->eax = syscalls[num]();
|
||||||
} else {
|
} else {
|
||||||
cprintf("%d %s: unknown sys call %d\n",
|
cprintf("%d %s: unknown sys call %d\n",
|
||||||
|
|
Loading…
Reference in a new issue