summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-07 19:55:24 -0400
committerIan Moffett <ian@osmora.org>2024-04-07 19:55:24 -0400
commit37ce7083c1ce165740acdfeaae361d3680f23f07 (patch)
tree8a6234cd67e0e8598354283587fdc664d94c5bf6 /sys
parent75de19a1b792f5a3f7b04c5ce8a8c00de3770e8b (diff)
kernel/amd64: syscall: Set IP in syscall_args
Signed-off-by: Ian Moffett <ian@osmora.org>
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) {