Skip to content

Commit 4101a0b

Browse files
committed
Merge branch 'post-11' into post-12
2 parents f1dec65 + 70714bc commit 4101a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gdt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ struct Selectors {
4141
}
4242

4343
pub fn init() {
44-
use x86_64::instructions::segmentation::set_cs;
44+
use x86_64::instructions::segmentation::{Segment, CS};
4545
use x86_64::instructions::tables::load_tss;
4646

4747
GDT.0.load();
4848
unsafe {
49-
set_cs(GDT.1.code_selector);
49+
CS::set_reg(GDT.1.code_selector);
5050
load_tss(GDT.1.tss_selector);
5151
}
5252
}

0 commit comments

Comments
 (0)