Load the GDT

This commit is contained in:
Philipp Oppermann
2019-01-25 13:57:40 +01:00
parent ea1b031fd3
commit b5202e26a1
2 changed files with 5 additions and 0 deletions

View File

@@ -28,3 +28,7 @@ lazy_static! {
gdt
};
}
pub fn init() {
GDT.load();
}

View File

@@ -10,6 +10,7 @@ use core::panic::PanicInfo;
pub extern "C" fn _start() -> ! {
println!("Hello World{}", "!");
blog_os::gdt::init();
blog_os::interrupts::init_idt();
fn stack_overflow() {