Skip to content

Commit cfb7128

Browse files
committed
Gate pac_enum with v-trap since only the generated vector table is gated
1 parent 2ed7cd3 commit cfb7128

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

riscv-rt/src/interrupts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub unsafe extern "C" fn _dispatch_core_interrupt(code: usize) {
7171
}
7272

7373
// In vectored mode, we also must provide a vector table
74+
#[cfg(feature = "v-trap")]
7475
#[riscv::pac_enum(unsafe CoreInterruptNumber)]
7576
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
7677
enum Interrupt {

0 commit comments

Comments
 (0)