From b5202e26a1efcd8755c068a8f61ac14ecc830dae Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 25 Jan 2019 13:57:40 +0100 Subject: [PATCH] Load the GDT --- src/gdt.rs | 4 ++++ src/main.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/src/gdt.rs b/src/gdt.rs index b58089c1..eae34bf4 100644 --- a/src/gdt.rs +++ b/src/gdt.rs @@ -28,3 +28,7 @@ lazy_static! { gdt }; } + +pub fn init() { + GDT.load(); +} diff --git a/src/main.rs b/src/main.rs index 54a09190..aabf5128 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() {