aboutsummaryrefslogtreecommitdiff
path: root/sys/arch/amd64/amd64
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-26 22:32:51 -0400
committerIan Moffett <ian@osmora.org>2024-04-26 22:32:51 -0400
commit619e2ce58cce811fc14d6dc011d2cf5f12c12b85 (patch)
tree930e11fd1091fccfa64d17efa5615cd70903f0a2 /sys/arch/amd64/amd64
parenta307a99db39c800d243ea697dabb5d5043e8f26d (diff)
kernel/amd64: syscall: Allow RIP/RSP to be reset
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-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;
}