Panic handler
This commit is contained in:
parent
ec115c43c4
commit
5be5acfef9
@ -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 {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user