diff options
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -263,7 +263,7 @@ void syscall(void) { struct proc *cp = curproc[cpu()]; - int num = cp->tf->regs.eax; + int num = cp->tf->eax; int ret = -1; //cprintf("%x sys %d\n", cp, num); @@ -309,5 +309,5 @@ syscall(void) // XXX fault break; } - cp->tf->regs.eax = ret; + cp->tf->eax = ret; } |