Rewrite remap_the_kernel post to use range_inclusive instead of step_by

This commit is contained in:
Philipp Oppermann
2016-03-06 13:42:12 +01:00
parent 03ed3ce9a0
commit 1d8a36a14b
2 changed files with 64 additions and 31 deletions

View File

@@ -144,8 +144,6 @@ impl InactivePageTable {
pub fn remap_the_kernel<A>(allocator: &mut A, boot_info: &BootInformation)
where A: FrameAllocator
{
use core::ops::Range;
let mut temporary_page = TemporaryPage::new(Page { number: 0xcafebabe }, allocator);
let mut active_table = unsafe { ActivePageTable::new() };