We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ac678 commit 0ac8876Copy full SHA for 0ac8876
esp-hal-common/src/lib.rs
@@ -220,7 +220,10 @@ mod critical_section_impl {
220
use super::multicore::{LockKind, MULTICORE_LOCK};
221
222
match MULTICORE_LOCK.lock() {
223
- LockKind::Lock => tkn &= !REENTRY_FLAG,
+ LockKind::Lock => {
224
+ // We can assume the reserved bit is 0 otherwise
225
+ // rsil - wsr pairings would be undefined behavior
226
+ }
227
LockKind::Reentry => tkn |= REENTRY_FLAG,
228
}
229
0 commit comments