Use hlt_loop in lib.rs too

This commit is contained in:
Philipp Oppermann
2019-04-25 20:25:39 +02:00
parent ae93dc18c3
commit 51cdc4db8b

View File

@@ -31,7 +31,7 @@ pub fn test_panic_handler(info: &PanicInfo) -> ! {
serial_println!("[failed]\n");
serial_println!("Error: {}\n", info);
exit_qemu(QemuExitCode::Failed);
loop {}
hlt_loop();
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@@ -56,7 +56,7 @@ pub fn exit_qemu(exit_code: QemuExitCode) {
pub extern "C" fn _start() -> ! {
init();
test_main();
loop {}
hlt_loop();
}
#[cfg(test)]