Skip to content
Snippets Groups Projects
Verified Commit 4354bc94 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Fix process-targeted signals.

parent 15cdc4e0
No related branches found
No related tags found
No related merge requests found
...@@ -194,7 +194,7 @@ asmfunction!(__relibc_internal_sigentry: [" ...@@ -194,7 +194,7 @@ asmfunction!(__relibc_internal_sigentry: ["
bsf eax, eax bsf eax, eax
jz 8f jz 8f
lock btr [rcx + {pctl_off_pending}], eax lock btr [rcx + {pctl_off_pending}], eax
jnc 9f jc 9f
8: 8:
// Read second signal word - both process and thread simultaneously. // Read second signal word - both process and thread simultaneously.
// This must be done since POSIX requires low realtime signals to be picked first. // This must be done since POSIX requires low realtime signals to be picked first.
...@@ -229,7 +229,7 @@ asmfunction!(__relibc_internal_sigentry: [" ...@@ -229,7 +229,7 @@ asmfunction!(__relibc_internal_sigentry: ["
add rdx, fs:[{tcb_sa_off} + {sa_off_pctl}] add rdx, fs:[{tcb_sa_off} + {sa_off_pctl}]
// scale factor 16 doesn't exist, so we premultiplied edx by 2 // scale factor 16 doesn't exist, so we premultiplied edx by 2
bt qword ptr [rdx], 56 bt qword ptr [rdx], 58
jnc 4f jnc 4f
// Otherwise, the altstack is already active. The sigaltstack being disabled, is equivalent // Otherwise, the altstack is already active. The sigaltstack being disabled, is equivalent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment