From 63f8814b8b5629a84562be6b756c8f50c10c1677 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 19 Mar 2024 20:06:55 -0400 Subject: kernel: syscall: Fix syscall order Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/syscall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/syscall.c b/sys/arch/amd64/amd64/syscall.c index 68235d5..b0abe7f 100644 --- a/sys/arch/amd64/amd64/syscall.c +++ b/sys/arch/amd64/amd64/syscall.c @@ -36,9 +36,10 @@ __syscall(struct trapframe *tf) .code = tf->rax, .arg0 = tf->rdi, .arg1 = tf->rsi, - .arg2 = tf->rcx, - .arg3 = tf->r8, + .arg2 = tf->rdx, + .arg3 = tf->r10, .arg4 = tf->r9, + .arg5 = tf->r8, .sp = tf->rsp }; -- cgit v1.2.3