mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Update blog/content/edition-2/posts/06-double-faults/index.md
Accidentally forgot to update the use statements. Co-authored-by: ruhuang <ruhuang2001@gmail.com>
This commit is contained in:
@@ -365,7 +365,8 @@ Now we can use the selectors to reload the `cs` segment register and load our `T
|
|||||||
pub fn init() {
|
pub fn init() {
|
||||||
use x86_64::instructions::segmentation::set_cs;
|
use x86_64::instructions::segmentation::set_cs;
|
||||||
use x86_64::instructions::tables::load_tss;
|
use x86_64::instructions::tables::load_tss;
|
||||||
|
// use x86_64::instructions::segmentation::set_cs;
|
||||||
|
use x86_64::instructions::segmentation::{CS, Segment};
|
||||||
GDT.0.load();
|
GDT.0.load();
|
||||||
unsafe {
|
unsafe {
|
||||||
CS::set_reg(GDT.1.code_selector);
|
CS::set_reg(GDT.1.code_selector);
|
||||||
|
|||||||
Reference in New Issue
Block a user