aboutsummaryrefslogtreecommitdiff
path: root/pk/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/syscall.c')
-rw-r--r--pk/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/syscall.c b/pk/syscall.c
index 93ff12a..790f32d 100644
--- a/pk/syscall.c
+++ b/pk/syscall.c
@@ -124,6 +124,6 @@ void handle_syscall(trapframe_t* tf)
//printk("syscall %d (%x,%x,%x,%x) from %x == %d\n",n,tf->gpr[4],tf->gpr[5],tf->gpr[6],tf->gpr[7],tf->gpr[31],tf->gpr[2]);
- tf->epc += 4;
+ advance_pc(tf);
pop_tf(tf);
}