Disable SMP startup, fix issue with reusing trampoline frame

This commit is contained in:
Jeremy Soller
2017-04-14 20:58:23 -06:00
parent 56a533fbbc
commit 7c1d5d8306

View File

@@ -86,6 +86,7 @@ fn parse_sdt(sdt: &'static Sdt, active_table: &mut ActivePageTable) {
println!(" XAPIC {}: {:>08X}", me, local_apic.address);
}
/*
let trampoline_frame = Frame::containing_address(PhysicalAddress::new(TRAMPOLINE));
let trampoline_page = Page::containing_address(VirtualAddress::new(TRAMPOLINE));
@@ -174,8 +175,9 @@ fn parse_sdt(sdt: &'static Sdt, active_table: &mut ActivePageTable) {
}
// Unmap trampoline
let result = active_table.unmap(trampoline_page);
let (result, _frame) = active_table.unmap_return(trampoline_page);
result.flush(active_table);
*/
} else if let Some(dmar) = Dmar::new(sdt) {
println!(": {}: {}", dmar.addr_width, dmar.flags);