Panic in Double Fault handler instead of looping endlessly

The advantage of panicking is that it causes a QEMU exit in integration tests.
This commit is contained in:
Philipp Oppermann
2019-04-25 16:56:49 +02:00
parent 701542b40f
commit bda362a666
3 changed files with 1 additions and 2 deletions

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB