mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Identity map the vga text buffer
This commit is contained in:
@@ -216,6 +216,9 @@ pub fn remap_the_kernel<A>(allocator: &mut A, boot_info: &BootInformation)
|
|||||||
mapper.identity_map(frame, flags, allocator);
|
mapper.identity_map(frame, flags, allocator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let vga_buffer_frame = Frame::containing_address(0xb8000);
|
||||||
|
mapper.identity_map(vga_buffer_frame, WRITABLE, allocator);
|
||||||
});
|
});
|
||||||
|
|
||||||
let old_table = active_table.switch(new_table);
|
let old_table = active_table.switch(new_table);
|
||||||
|
|||||||
Reference in New Issue
Block a user