Add support for panicking

This commit is contained in:
Yash Karandikar 2021-09-15 21:26:38 -05:00
parent 6bf87c3737
commit 8130f358f7

View file

@ -6,17 +6,16 @@ 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!("Hello there{}", "!");
println!("The senate will decide your fate");
println!();
println!("General Kenobi!");
println!();
println!("You are a bold one");
panic!("I am the senate");
loop {}