diff --git a/src/gdt.rs b/src/gdt.rs index 3a56b350c..e7ffdc989 100644 --- a/src/gdt.rs +++ b/src/gdt.rs @@ -41,12 +41,12 @@ struct Selectors { } pub fn init() { - use x86_64::instructions::segmentation::set_cs; + use x86_64::instructions::segmentation::{Segment, CS}; use x86_64::instructions::tables::load_tss; GDT.0.load(); unsafe { - set_cs(GDT.1.code_selector); + CS::set_reg(GDT.1.code_selector); load_tss(GDT.1.tss_selector); } }