Commit 2032aa2
committed
ports/stm32: Use PRIMASK for complete interrupt masking in Zephyr threading.
Replace arch_irq_lock/unlock with direct PRIMASK manipulation in IRQ
management functions. PRIMASK masks ALL interrupts including priority 0,
ensuring critical sections are not interrupted by Zephyr's scheduler or
any IRQs. This provides more complete protection than BASEPRI which only
masks interrupts at or above a specific priority threshold.
Signed-off-by: Andrew Leech <andrew@alelec.net>
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent bea7a0c commit 2032aa2
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments