Printing from panic handler
This commit is contained in:
parent
ae7b904abc
commit
13fb110417
|
@ -3,7 +3,7 @@
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#![feature(naked_functions)]
|
#![feature(naked_functions)]
|
||||||
|
|
||||||
use core::panic::PanicInfo;
|
use core::{panic::PanicInfo};
|
||||||
|
|
||||||
mod heap;
|
mod heap;
|
||||||
mod uart;
|
mod uart;
|
||||||
|
@ -67,7 +67,9 @@ extern "C" fn start() -> ! {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
fn on_panic(_info: &PanicInfo) -> ! {
|
fn on_panic(info: &PanicInfo) -> ! {
|
||||||
|
println!("{}", info);
|
||||||
|
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue