Update testing

This commit is contained in:
Ryan Kennedy 2021-05-24 20:22:55 -05:00
parent 1c0b29dba2
commit f88a4cfc07

View file

@ -49,14 +49,14 @@ pub fn init_idt() {
} }
extern "x86-interrupt" fn double_fault_handler( extern "x86-interrupt" fn double_fault_handler(
stack_frame: &mut InterruptStackFrame, stack_frame: InterruptStackFrame,
_error_code: u64, _error_code: u64,
) -> ! { ) -> ! {
panic!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame); panic!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);
} }
extern "x86-interrupt" fn page_fault_handler( extern "x86-interrupt" fn page_fault_handler(
stack_frame: &mut InterruptStackFrame, stack_frame: InterruptStackFrame,
error_code: PageFaultErrorCode, error_code: PageFaultErrorCode,
) { ) {
use x86_64::registers::control::Cr2; use x86_64::registers::control::Cr2;
@ -69,7 +69,7 @@ extern "x86-interrupt" fn page_fault_handler(
} }
extern "x86-interrupt" fn segment_not_present( extern "x86-interrupt" fn segment_not_present(
_stack_frame: &mut InterruptStackFrame, _stack_frame: InterruptStackFrame,
_error_code: u64, _error_code: u64,
) { ) {
// For some reason this sometimes gets thrown when running tests in qemu, // For some reason this sometimes gets thrown when running tests in qemu,