From fdacfb24f0e6b826e1b87ee9c045c07d86760b67 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 18 Apr 2017 12:27:24 +0200 Subject: [PATCH] Fix boot loop by identity mapping the vga buffer --- src/memory/paging/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/memory/paging/mod.rs b/src/memory/paging/mod.rs index 8c23586b..fd97a4c0 100644 --- a/src/memory/paging/mod.rs +++ b/src/memory/paging/mod.rs @@ -181,6 +181,10 @@ pub fn remap_the_kernel(allocator: &mut A, boot_info: &BootInformation) mapper.identity_map(frame, flags, allocator); } } + + // identity map the VGA text buffer + let vga_buffer_frame = Frame::containing_address(0xb8000); + mapper.identity_map(vga_buffer_frame, WRITABLE, allocator); }); let old_table = active_table.switch(new_table);