diff --git a/src/interrupts/mod.rs b/src/interrupts/mod.rs index 8b20197..d292184 100644 --- a/src/interrupts/mod.rs +++ b/src/interrupts/mod.rs @@ -56,7 +56,7 @@ pub fn init(memory_controller: &mut MemoryController) { let gdt = GDT.call_once(|| { let mut gdt = gdt::Gdt::new(); gdt.add_entry(GNULL); - kcode_selector = + code_selector = gdt.add_entry(KCODE); gdt.add_entry(UCODE); gdt.add_entry(KDATA);