mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user