Add and use hlt_loop function

This commit is contained in:
Philipp Oppermann
2019-01-25 14:16:29 +01:00
parent 599a643d97
commit c2e4e8c96f
3 changed files with 10 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ pub extern "C" fn _start() -> ! {
x86_64::instructions::interrupts::enable();
println!("It did not crash!");
loop {}
blog_os::hlt_loop();
}
/// This function is called on panic.
@@ -26,5 +26,5 @@ pub extern "C" fn _start() -> ! {
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
blog_os::hlt_loop();
}