aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/amd64/syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/syscall.c b/sys/arch/amd64/amd64/syscall.c
index 3b02caa..264c8df 100644
--- a/sys/arch/amd64/amd64/syscall.c
+++ b/sys/arch/amd64/amd64/syscall.c
@@ -48,4 +48,7 @@ __syscall(struct trapframe *tf)
args.code -= 1;
tf->rax = g_syscall_table[args.code](&args);
}
+
+ tf->rip = args.ip;
+ tf->rsp = args.sp;
}