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() {