From e77742e029e07044bbba857c30ae2ac90c7267c9 Mon Sep 17 00:00:00 2001 From: Matthew Leach Date: Sun, 21 Dec 2025 20:49:50 +0000 Subject: [PATCH] aarch64: syscalls: clone: fix arg order The clone syscal on aarch64 is the following: ``` SYS_clone, flags, stack, ptid, tls, ctid x8, x0, x1, x2, x3, x4 ``` which is a different order than listed on the man page. Fix the ordering in the aarch64 syscall dispatch code. --- src/arch/arm64/exceptions/syscall.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/arm64/exceptions/syscall.rs b/src/arch/arm64/exceptions/syscall.rs index 8678692..38c5e03 100644 --- a/src/arch/arm64/exceptions/syscall.rs +++ b/src/arch/arm64/exceptions/syscall.rs @@ -256,8 +256,8 @@ pub async fn handle_syscall() { arg1 as _, UA::from_value(arg2 as _), UA::from_value(arg3 as _), - UA::from_value(arg4 as _), - arg5 as _, + UA::from_value(arg5 as _), + arg4 as _, ) .await }