Print panic message to vga buffer

This commit is contained in:
Philipp Oppermann
2018-06-04 13:48:39 +02:00
parent 3f61050387
commit d9d836fe2c
3 changed files with 24 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ pub extern "C" fn _start() -> ! {
/// This function is called on panic.
#[panic_implementation]
#[no_mangle]
pub fn panic(_info: &PanicInfo) -> ! {
pub fn panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
}