From 37ce7083c1ce165740acdfeaae361d3680f23f07 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 7 Apr 2024 19:55:24 -0400 Subject: kernel/amd64: syscall: Set IP in syscall_args Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') 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) { -- cgit v1.2.3