Fix formatting and remove commented use statements

This commit is contained in:
Ford Smith
2022-03-19 13:03:40 -04:00
committed by GitHub
parent c393e4442d
commit f56b4a0a32

View File

@@ -363,10 +363,9 @@ Now we can use the selectors to reload the `cs` segment register and load our `T
// in src/gdt.rs
pub fn init() {
use x86_64::instructions::segmentation::set_cs;
use x86_64::instructions::tables::load_tss;
// use x86_64::instructions::segmentation::set_cs;
use x86_64::instructions::segmentation::{CS, Segment};
use x86_64::instructions::segmentation::{CS, Segment};
GDT.0.load();
unsafe {
CS::set_reg(GDT.1.code_selector);