From 5be5acfef918bd3b782045e9e6f724e44ec0102d Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 11 Jul 2019 01:47:49 -0700 Subject: [PATCH] Panic handler --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index aac6ace..fb8470e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,13 +7,15 @@ mod vga_buffer; use core::panic::PanicInfo; #[panic_handler] -fn panic(_info: &PanicInfo) -> !{ +fn panic(info: &PanicInfo) -> !{ + println!("{}", info); loop {} } #[no_mangle] pub extern "C" fn _start() -> ! { println!("Gamarjoba, munde: {}", 1); + panic!("A bad thing happened"); loop {} }