summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syscall.c b/syscall.c
index f86fa22..2ab9bbb 100644
--- a/syscall.c
+++ b/syscall.c
@@ -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;
}