Set CS register with non-deprecated function

set_cs is deprecated and CS::set_reg is preferred. Update the blog to reflect this change according to the docs.
This commit is contained in:
Ford Smith
2022-03-17 23:42:00 -04:00
committed by GitHub
parent 0873c3ae1d
commit 7954a9f424

View File

@@ -368,7 +368,7 @@ pub fn init() {
GDT.0.load(); GDT.0.load();
unsafe { unsafe {
set_cs(GDT.1.code_selector); CS::set_reg(GDT.1.code_selector);
load_tss(GDT.1.tss_selector); load_tss(GDT.1.tss_selector);
} }
} }