We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992ee1e commit 495f260Copy full SHA for 495f260
riscv-rt/src/lib.rs
@@ -729,9 +729,9 @@ pub unsafe extern "Rust" fn setup_interrupts() {
729
730
let xtvec_val = match () {
731
#[cfg(not(feature = "v-trap"))]
732
- _ => Xtvec::new(_start_trap as usize, TrapMode::Direct),
+ _ => Xtvec::new(_start_trap as *const () as usize, TrapMode::Direct),
733
#[cfg(feature = "v-trap")]
734
- _ => Xtvec::new(_vector_table as usize, TrapMode::Vectored),
+ _ => Xtvec::new(_vector_table as *const () as usize, TrapMode::Vectored),
735
};
736
xtvec::write(xtvec_val);
737
}
0 commit comments