Skip to content

Commit

Permalink
Merge pull request #73 from xxuejie/only-alter-panic-handler-in-riscv…
Browse files Browse the repository at this point in the history
…64-target

fix: Only alter panic handler in riscv64 target
  • Loading branch information
quake authored Jan 1, 2024
2 parents 40b7d86 + b91fa54 commit a0add70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a0add70

Please sign in to comment.