From afbd5986a58ae5c6cd8c0a7e86a745272324bc90 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Thu, 18 Dec 2025 14:03:13 +1100 Subject: [PATCH] fix(redox-rt/signal/x86_64): corrupted `r8`/`r10` Signed-off-by: Anhad Singh --- redox-rt/src/arch/x86_64.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redox-rt/src/arch/x86_64.rs b/redox-rt/src/arch/x86_64.rs index 2c92aec9d7..33edd5a9d2 100644 --- a/redox-rt/src/arch/x86_64.rs +++ b/redox-rt/src/arch/x86_64.rs @@ -179,8 +179,8 @@ asmfunction!(__relibc_internal_sigentry: [" mov fs:[{tcb_sa_off} + {sa_tmp_rdx}], rdx mov fs:[{tcb_sa_off} + {sa_tmp_rdi}], rdi mov fs:[{tcb_sa_off} + {sa_tmp_rsi}], rsi - mov fs:[{tcb_sa_off} + {sa_tmp_r12}], r8 - mov fs:[{tcb_sa_off} + {sa_tmp_r12}], r10 + mov fs:[{tcb_sa_off} + {sa_tmp_r8}], r8 + mov fs:[{tcb_sa_off} + {sa_tmp_r10}], r10 mov fs:[{tcb_sa_off} + {sa_tmp_r12}], r12 // First, select signal, always pick first available bit