From 4354bc94e8981cec6425f2deddda89a5e04144e2 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Wed, 17 Jul 2024 16:42:17 +0200 Subject: [PATCH] Fix process-targeted signals. --- 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 377bf79e..9932a714 100644 --- a/redox-rt/src/arch/x86_64.rs +++ b/redox-rt/src/arch/x86_64.rs @@ -194,7 +194,7 @@ asmfunction!(__relibc_internal_sigentry: [" bsf eax, eax jz 8f lock btr [rcx + {pctl_off_pending}], eax - jnc 9f + jc 9f 8: // Read second signal word - both process and thread simultaneously. // This must be done since POSIX requires low realtime signals to be picked first. @@ -229,7 +229,7 @@ asmfunction!(__relibc_internal_sigentry: [" add rdx, fs:[{tcb_sa_off} + {sa_off_pctl}] // scale factor 16 doesn't exist, so we premultiplied edx by 2 - bt qword ptr [rdx], 56 + bt qword ptr [rdx], 58 jnc 4f // Otherwise, the altstack is already active. The sigaltstack being disabled, is equivalent -- GitLab