Remove debugging times, set PIT to slower frequency

This commit is contained in:
Jeremy Soller 2016-09-01 16:46:34 -06:00
parent 817638b7aa
commit 7ae58a11d7
3 changed files with 2 additions and 7 deletions

View file

@ -102,7 +102,7 @@ pub unsafe fn init(active_table: &mut ActivePageTable) {
let start_frame = Frame::containing_address(PhysicalAddress::new(onscreen));
let end_frame = Frame::containing_address(PhysicalAddress::new(onscreen + size * 4 - 1));
for frame in Frame::range_inclusive(start_frame, end_frame) {
active_table.identity_map(frame, entry::HUGE_PAGE /*actually sets PAT for write combining*/ | entry::PRESENT | entry::WRITABLE | entry::NO_EXECUTE);
active_table.identity_map(frame, /*actually sets PAT for write combining*/ entry::HUGE_PAGE | entry::PRESENT | entry::WRITABLE | entry::NO_EXECUTE);
}
}