Adjust post-06 to take InterruptStackFrame by value

This commit is contained in:
Philipp Oppermann
2021-05-17 11:46:24 +02:00
parent 5ae0f13fa4
commit d55fa1ee24
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ extern "x86-interrupt" fn breakpoint_handler(stack_frame: InterruptStackFrame) {
}
extern "x86-interrupt" fn double_fault_handler(
stack_frame: &mut InterruptStackFrame,
stack_frame: InterruptStackFrame,
_error_code: u64,
) -> ! {
panic!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);

View File

@@ -44,7 +44,7 @@ pub fn init_test_idt() {
}
extern "x86-interrupt" fn test_double_fault_handler(
_stack_frame: &mut InterruptStackFrame,
_stack_frame: InterruptStackFrame,
_error_code: u64,
) -> ! {
serial_println!("[ok]");