This commit is contained in:
Gvidas Juknevičius 2024-09-03 16:07:38 +03:00
parent 4349fe9c6e
commit 62bbebf693
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB

View File

@ -209,7 +209,7 @@ pub fn remap_the_kernel<A>(allocator: &mut A, mem_info: &MemInfo) -> ActivePageT
mapper.identity_map(vga_text_buffer_frame, EntryFlags::WRITABLE, allocator);
let vga_video_buffer_frame_start = Frame::containing_address(mem_info.vga_vide_start);
let vga_video_buffer_frame_end = Frame::containing_address(mem_info.vga_vide_start + (mem_info.vga_vide_size*4));
let vga_video_buffer_frame_end = Frame::containing_address(mem_info.vga_vide_start + mem_info.vga_vide_size);
for frame in Frame::range_inclusive(vga_video_buffer_frame_start, vga_video_buffer_frame_end) {
mapper.identity_map(frame, EntryFlags::WRITABLE | EntryFlags::WRITE_THROUGH, allocator);
}