summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/syscall.c b/sys/arch/amd64/amd64/syscall.c
index b0abe7f..3b02caa 100644
--- a/sys/arch/amd64/amd64/syscall.c
+++ b/sys/arch/amd64/amd64/syscall.c
@@ -40,7 +40,8 @@ __syscall(struct trapframe *tf)
.arg3 = tf->r10,
.arg4 = tf->r9,
.arg5 = tf->r8,
- .sp = tf->rsp
+ .sp = tf->rsp,
+ .ip = tf->rip
};
if (args.code < __MAX_SYSCALLS && args.code > 0) {