Use panic! instead of println! + loop in double fault handler (#687)

This avoids an endless loop when a double fault occurs while running `cargo xtest`.
This commit is contained in:
Philipp Oppermann
2019-11-22 15:56:56 +01:00
committed by GitHub
parent 1a1ce5120f
commit 3470636653

View File

@@ -33,8 +33,7 @@ extern "x86-interrupt" fn double_fault_handler(
stack_frame: &mut InterruptStackFrame,
_error_code: u64,
) {
println!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);
loop {}
panic!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);
}
#[cfg(test)]