Skip to content

Commit

Permalink
kern/arm_m: properly dispatch to irq0 handler
Browse files Browse the repository at this point in the history
Off-by-one error in DefaultHandler() meant IRQ0 would result in an
unknown exception panic instead of looking for a task to dispatch to.

Fixes oxidecomputer#367
  • Loading branch information
mx-shift committed Jan 18, 2022
1 parent 019db45 commit 6f73733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/kern/src/arch/arm_m.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ pub unsafe extern "C" fn DefaultHandler() {
// 13 is currently reserved
// 14=PendSV is handled above by its own handler
// 15=SysTick is handled above by its own handler
x if x > 16 => {
x if x >= 16 => {
// Hardware interrupt
let irq_num = exception_num - 16;
let switch = with_task_table(|tasks| {
Expand Down

0 comments on commit 6f73733

Please sign in to comment.