Update to x86_64 0.2.8: The Idt type was renamed to InterruptDescriptorTable

This commit is contained in:
Philipp Oppermann
2018-07-14 14:32:33 +02:00
parent 3faa0cfcad
commit 0f07341dea
8 changed files with 68 additions and 68 deletions

View File

@@ -42,11 +42,11 @@ pub fn panic(info: &PanicInfo) -> ! {
loop {}
}
use x86_64::structures::idt::{ExceptionStackFrame, Idt};
use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable};
lazy_static! {
static ref IDT: Idt = {
let mut idt = Idt::new();
static ref IDT: InterruptDescriptorTable = {
let mut idt = InterruptDescriptorTable::new();
idt.breakpoint.set_handler_fn(breakpoint_handler);
unsafe {
idt.double_fault