aboutsummaryrefslogtreecommitdiff
path: root/pk/handlers.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2014-10-26 19:36:28 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2014-10-26 19:36:28 -0700
commitfda0d85ae4596262d1da642593676e0f3cf3f0f1 (patch)
tree0725f2bd71cd1bbb7912de74f519a025a4703245 /pk/handlers.c
parent90e64853188620e02a02727ff050e5014cbc2528 (diff)
downloadriscv-pk-fda0d85ae4596262d1da642593676e0f3cf3f0f1.zip
riscv-pk-fda0d85ae4596262d1da642593676e0f3cf3f0f1.tar.gz
riscv-pk-fda0d85ae4596262d1da642593676e0f3cf3f0f1.tar.bz2
Don't rely on the C library
Diffstat (limited to 'pk/handlers.c')
-rw-r--r--pk/handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/handlers.c b/pk/handlers.c
index 00bb6de..2d5356a 100644
--- a/pk/handlers.c
+++ b/pk/handlers.c
@@ -112,8 +112,8 @@ void handle_fault_store(trapframe_t* tf)
static void handle_syscall(trapframe_t* tf)
{
- tf->gpr[16] = syscall(tf->gpr[18], tf->gpr[19], tf->gpr[20], tf->gpr[21],
- tf->gpr[22], tf->gpr[23], tf->gpr[16]);
+ tf->gpr[16] = do_syscall(tf->gpr[18], tf->gpr[19], tf->gpr[20], tf->gpr[21],
+ tf->gpr[22], tf->gpr[23], tf->gpr[16]);
tf->epc += 4;
}