Skip to content

Commit 1f082be

Browse files
committed
arm: fix ISPR mask
1 parent a623192 commit 1f082be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/cortex-m/src/support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub fn is_interrupt_context() -> bool {
9898

9999
// If IPSR[8:0] is 0 then we are in thread mode. Otherwise an interrupt has
100100
// occurred and we are in some interrupt service routine.
101-
(interrupt_number & 0xFF) != 0
101+
(interrupt_number & 0x1FF) != 0
102102
}
103103

104104
#[cfg(not(any(doc, all(target_arch = "arm", target_os = "none"))))]

0 commit comments

Comments
 (0)