summaryrefslogtreecommitdiff
path: root/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'trap.c')
-rw-r--r--trap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trap.c b/trap.c
index c00a830..41b8c8f 100644
--- a/trap.c
+++ b/trap.c
@@ -37,7 +37,7 @@ trap(struct Trapframe *tf)
if(v == T_SYSCALL){
struct proc *cp = curproc[cpu()];
- int num = cp->tf->regs.eax;
+ int num = cp->tf->eax;
if(cp == 0)
panic("syscall with no proc");
if(cp->killed)