mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Compare commits
7 Commits
f1dec65abb
...
4101a0bd2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4101a0bd2e | ||
|
|
70714bc27d | ||
|
|
f0149947cf | ||
|
|
ee550a64e0 | ||
|
|
cce1bfd387 | ||
|
|
511686c054 | ||
|
|
b72c457481 |
@@ -41,12 +41,12 @@ struct Selectors {
|
||||
}
|
||||
|
||||
pub fn init() {
|
||||
use x86_64::instructions::segmentation::set_cs;
|
||||
use x86_64::instructions::segmentation::{Segment, CS};
|
||||
use x86_64::instructions::tables::load_tss;
|
||||
|
||||
GDT.0.load();
|
||||
unsafe {
|
||||
set_cs(GDT.1.code_selector);
|
||||
CS::set_reg(GDT.1.code_selector);
|
||||
load_tss(GDT.1.tss_selector);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user