summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-07-17 01:36:39 +0000
committerrsc <rsc>2006-07-17 01:36:39 +0000
commitee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3 (patch)
tree0509dd8855210b0fcfca73c4181122b48d81bfdb /syscall.c
parentf15a3ae2633a9f3c76be7ce76b2ab85e2229e502 (diff)
downloadxv6-labs-ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3.tar.gz
xv6-labs-ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3.tar.bz2
xv6-labs-ee9c7f3bfc45563e4caebcb7995e75bf39a8e0f3.zip
goodbye PushRegs
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;
}