Mark kernel page table entries as global

This commit is contained in:
2022-01-14 21:38:22 +01:00
parent 7d9a744cf2
commit 0272605d36
5 changed files with 9 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ void fbterm_init(struct fbinfo *fbinfo)
for(uintptr_t p = (uintptr_t)kernel_fb.addr; p < ((uintptr_t)kernel_fb.addr + kernel_fb.size); p += PAGE_SIZE)
{
vmm_set_page(kernel_P4, p, V2P(p), PAGE_WRITE | PAGE_PRESENT);
vmm_set_page(kernel_P4, p, V2P(p), PAGE_GLOBAL | PAGE_WRITE | PAGE_PRESENT);
}
draw_rect(&kernel_fb, 20, 20, 8*VGA_COLS+8, 16*VGA_ROWS+8, RGB(255, 0, 0));