Update post-07 code for changes in x86_64 0.5.0

This commit is contained in:
Philipp Oppermann
2019-03-09 12:34:49 +01:00
parent be0ed3a54d
commit 8e5b6a3e3f
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ fn panic(info: &PanicInfo) -> ! {
loop {} loop {}
} }
use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable}; use x86_64::structures::idt::{InterruptDescriptorTable, InterruptStackFrame};
lazy_static! { lazy_static! {
static ref TEST_IDT: InterruptDescriptorTable = { static ref TEST_IDT: InterruptDescriptorTable = {

View File

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