From ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 17 Jul 2006 01:36:39 +0000 Subject: goodbye PushRegs --- trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trap.c') 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) -- cgit v1.2.3