From 4029e6d2d3459c4e4442f42415150396d43a7a85 Mon Sep 17 00:00:00 2001 From: WangRunji Date: Sat, 14 Apr 2018 20:18:37 +0800 Subject: [PATCH] Fix gdt compile error --- src/interrupts/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);