diff --git a/src/entry.rs b/src/entry.rs index e7e837b..7ebcc97 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -50,6 +50,7 @@ macro_rules! entry { "ecall", ); + #[cfg(target_arch = "riscv64")] #[panic_handler] fn panic_handler(panic_info: &core::panic::PanicInfo) -> ! { $crate::debug!("{}", panic_info);