gdt stuff

This commit is contained in:
Jack Halford 2018-04-25 21:37:58 +02:00
parent 4a13eb1c15
commit d3eb0e5138
2 changed files with 7 additions and 14 deletions

View file

@ -30,19 +30,12 @@ pub fn init(mut active_table: &mut ActivePageTable) {
gdt gdt
}); });
// println!("gdt 0 upper: {:#x}", gdt.table[0] as u32); println!("gdt[0]={:#?}", gdt::Descriptor(gdt.table[0]));
// println!("gdt 0 lower: {:#x}", gdt.table[0] >> 32 as u32); println!("gdt[1]={:#?}", gdt::Descriptor(gdt.table[1]));
// println!("gdt 1 upper: {:#x}", gdt.table[1] as u32); println!("gdt[2]={:#?}", gdt::Descriptor(gdt.table[2]));
// println!("gdt 1 lower: {:#x}", gdt.table[1] >> 32 as u32); println!("gdt[3]={:#?}", gdt::Descriptor(gdt.table[3]));
// println!("gdt 2 upper: {:#x}", gdt.table[2] as u32); println!("gdt[4]={:#?}", gdt::Descriptor(gdt.table[4]));
// println!("gdt 2 lower: {:#x}", gdt.table[2] >> 32 as u32); flush!();
// println!("gdt 3 upper: {:#x}", gdt.table[3] as u32);
// println!("gdt 3 lower: {:#x}", gdt.table[3] >> 32 as u32);
// println!("gdt 3 limit: {}", (gdt.table[3] & 0x00ff) as u32);
// println!("gdt 3 base : {}", (gdt.table[3] & 0xff00) as u32);
// println!("gdt 4 upper: {:#x}", gdt.table[4] as u32);
// println!("gdt 4 lower: {:#x}", gdt.table[4] >> 32 as u32);
// flush!();
gdt.load(); gdt.load();
unsafe { unsafe {

@ -1 +1 @@
Subproject commit b50a1f4f875be1ccd8a89cf0ae23e292630d414e Subproject commit 830c0b770873e8f96b0fbdab484579e15cfd8b73