Skip to content

Commit

Permalink
Merge branch 'post-10' into post-11
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Apr 8, 2022
2 parents 1893caa + f014994 commit 70714bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 70714bc

Please sign in to comment.