diff --git a/blog/content/edition-2/posts/06-double-faults/index.md b/blog/content/edition-2/posts/06-double-faults/index.md index 02a13d01..972468b7 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.md +++ b/blog/content/edition-2/posts/06-double-faults/index.md @@ -363,12 +363,12 @@ Now we can use the selectors to reload the `cs` segment register and load our `T // in src/gdt.rs pub fn init() { - use x86_64::instructions::segmentation::set_cs; use x86_64::instructions::tables::load_tss; - + use x86_64::instructions::segmentation::{CS, Segment}; + GDT.0.load(); unsafe { - set_cs(GDT.1.code_selector); + CS::set_reg(GDT.1.code_selector); load_tss(GDT.1.tss_selector); } }