Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

Commit 3a128f7

Browse files
committed
Use a reserved ISR to prevent GC of default handler
1 parent 904dcd8 commit 3a128f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hal/cortex_m3/isr.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ extern {
2828
fn isr_svcall();
2929
fn isr_pendsv();
3030
fn isr_systick();
31+
fn isr_default_fault();
3132
}
3233

3334
static ISRCount: uint = 16;
@@ -43,7 +44,8 @@ pub static ISRVectors: [Option<unsafe extern fn()>, ..ISRCount] = [
4344
Some(isr_busfault), // CM3 Bus Fault
4445
Some(isr_usagefault), // CM3 Usage Fault
4546
Some(_boot_checksum), // NXP Checksum code
46-
None, // Reserved
47+
// This is Reserved, but using it to prevent default handler from being GC
48+
Some(isr_default_fault), // Reserved
4749
None, // Reserved
4850
None, // Reserved
4951
Some(isr_svcall), // SVCall

0 commit comments

Comments
 (0)