Skip to content
Snippets Groups Projects
Verified Commit 6a3d247a authored by Jacob Lorentzon's avatar Jacob Lorentzon :speech_balloon:
Browse files

Clear the signal bit in the handler.

parent a446ac19
Branches
No related tags found
No related merge requests found
......@@ -52,6 +52,11 @@ pub struct SigStack {
unsafe fn inner(stack: &mut SigStack) {
let os = &Tcb::current().unwrap().os_specific;
let sig_idx = stack.sig_num;
// Commenting out this line will stress test how the signal code responds to 'interrupt spraying'.
os.control.word[sig_idx / 32].fetch_and(!(1 << (sig_idx % 32)), Ordering::Relaxed);
// asm counts from 0
stack.sig_num += 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment