Fix typo in currently_pending.

This commit is contained in:
4lDO2
2024-07-02 12:19:41 +02:00
parent c9d22e484b
commit 5277f2f640
+1 -1
View File
@@ -501,7 +501,7 @@ pub const MIN_SIGALTSTACK_SIZE: usize = 8192;
pub fn currently_pending() -> u64 {
let control = &unsafe { Tcb::current().unwrap() }.os_specific.control;
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_unblocked_hi = w1 & !(w0 >> 32);
pending_blocked_lo | (pending_unblocked_hi << 32)