lfbvideo: Don't map EGA/VGA text mode range as WC as apparently things don't like that

This commit is contained in:
K. Lange 2021-11-01 19:07:09 +09:00
parent 6cea1dd330
commit 96cb5d9c01

View File

@ -486,7 +486,7 @@ static int ioctl_vga(fs_node_t * node, unsigned long request, void * argp) {
}
for (uintptr_t i = 0; i < 0x1000; i += 0x1000) {
union PML * page = mmu_get_page(vga_user_offset + i, MMU_GET_MAKE);
mmu_frame_map_address(page,MMU_FLAG_WRITABLE|MMU_FLAG_WC,((uintptr_t)(0xB8000) & 0xFFFFFFFF) + i);
mmu_frame_map_address(page,MMU_FLAG_WRITABLE/*|MMU_FLAG_WC*/,(uintptr_t)(0xB8000 + i));
}
*((uintptr_t *)argp) = vga_user_offset;
}