Printing from panic handler

This commit is contained in:
gil 2024-05-15 23:13:10 -05:00
parent ae7b904abc
commit 13fb110417

View file

@ -3,7 +3,7 @@
#![no_main]
#![feature(naked_functions)]
use core::panic::PanicInfo;
use core::{panic::PanicInfo};
mod heap;
mod uart;
@ -67,7 +67,9 @@ extern "C" fn start() -> ! {
}
#[panic_handler]
fn on_panic(_info: &PanicInfo) -> ! {
fn on_panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
}