Fix boot loop by identity mapping the vga buffer

This commit is contained in:
Philipp Oppermann
2017-04-18 12:27:24 +02:00
parent 564c6b64e9
commit fdacfb24f0

View File

@@ -181,6 +181,10 @@ pub fn remap_the_kernel<A>(allocator: &mut A, boot_info: &BootInformation)
mapper.identity_map(frame, flags, allocator); 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); let old_table = active_table.switch(new_table);