There was an error while loading. Please reload this page.
1 parent a623192 commit 1f082beCopy full SHA for 1f082be
1 file changed
arch/cortex-m/src/support.rs
@@ -98,7 +98,7 @@ pub fn is_interrupt_context() -> bool {
98
99
// If IPSR[8:0] is 0 then we are in thread mode. Otherwise an interrupt has
100
// occurred and we are in some interrupt service routine.
101
- (interrupt_number & 0xFF) != 0
+ (interrupt_number & 0x1FF) != 0
102
}
103
104
#[cfg(not(any(doc, all(target_arch = "arm", target_os = "none"))))]
0 commit comments