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

Fix typo in currently_pending.

parent c9d22e48
No related branches found
No related tags found
No related merge requests found
...@@ -501,7 +501,7 @@ pub const MIN_SIGALTSTACK_SIZE: usize = 8192; ...@@ -501,7 +501,7 @@ pub const MIN_SIGALTSTACK_SIZE: usize = 8192;
pub fn currently_pending() -> u64 { pub fn currently_pending() -> u64 {
let control = &unsafe { Tcb::current().unwrap() }.os_specific.control; let control = &unsafe { Tcb::current().unwrap() }.os_specific.control;
let w0 = control.word[0].load(Ordering::Relaxed); let w0 = control.word[0].load(Ordering::Relaxed);
let w1 = control.word[0].load(Ordering::Relaxed); let w1 = control.word[1].load(Ordering::Relaxed);
let pending_blocked_lo = w0 & !(w0 >> 32); let pending_blocked_lo = w0 & !(w0 >> 32);
let pending_unblocked_hi = w1 & !(w0 >> 32); let pending_unblocked_hi = w1 & !(w0 >> 32);
pending_blocked_lo | (pending_unblocked_hi << 32) pending_blocked_lo | (pending_unblocked_hi << 32)
......
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