forked from M-Labs/zynq-rs
19 lines
450 B
Rust
19 lines
450 B
Rust
use libboard_zynq::{slcr, print, println};
|
|
|
|
#[panic_handler]
|
|
fn panic(info: &core::panic::PanicInfo) -> ! {
|
|
print!("panic at ");
|
|
if let Some(location) = info.location() {
|
|
print!("{}:{}:{}", location.file(), location.line(), location.column());
|
|
} else {
|
|
print!("unknown location");
|
|
}
|
|
if let Some(message) = info.message() {
|
|
println!(": {}", message);
|
|
} else {
|
|
println!("");
|
|
}
|
|
|
|
loop {}
|
|
}
|