summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/sysenter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/sysenter.c')
-rw-r--r--src/kernel/arch/amd64/sysenter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/sysenter.c b/src/kernel/arch/amd64/sysenter.c
index b5cec73..459247f 100644
--- a/src/kernel/arch/amd64/sysenter.c
+++ b/src/kernel/arch/amd64/sysenter.c
@@ -13,6 +13,6 @@ _Noreturn void sysexit(struct registers regs) {
_Noreturn void sysenter_stage2(void) {
struct registers *regs = &process_current->regs;
*regs = _sysexit_regs;
- _syscall(regs->rdi, regs->rsi, regs->rdx, regs->r10, regs->r8);
+ _syscall(regs->rdi, regs->rsi, regs->rdx, regs->r10, regs->r8, regs->r9);
process_switch_any();
}