From 619e2ce58cce811fc14d6dc011d2cf5f12c12b85 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 26 Apr 2024 22:32:51 -0400 Subject: kernel/amd64: syscall: Allow RIP/RSP to be reset Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/syscall.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/arch') 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; } -- cgit v1.2.3