Transition the code to Rust 2018

This commit is contained in:
Philipp Oppermann
2018-11-18 13:44:21 +01:00
parent 5091491a1f
commit 6e5ebc4bd9
10 changed files with 16 additions and 48 deletions

View File

@@ -4,7 +4,7 @@
// problem we skip compilation of this module on Windows.
#![cfg(not(windows))]
use gdt;
use crate::gdt;
use pic8259_simple::ChainedPics;
use spin;
use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable};
@@ -48,7 +48,7 @@ extern "x86-interrupt" fn double_fault_handler(
stack_frame: &mut ExceptionStackFrame,
_error_code: u64,
) {
use hlt_loop;
use crate::hlt_loop;
println!("EXCEPTION: DOUBLE FAULT\n{:#?}", stack_frame);
hlt_loop();