VGA: fix MAP when reconfigured

This commit is contained in:
Mathieu Maret 2023-11-16 20:52:24 +01:00 committed by Mathieu Maret
parent a4f5a367ab
commit cf3c2f10fd
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ static void cursorMove(int x, int y)
}
void VGAMap(void){
for (paddr_t i = VGA_ADDR; i < VGA_ADDR + VGA_WIDTH * VGA_HEIGHT * sizeof(short) ; i += PAGE_SIZE) {
for (paddr_t i = (paddr_t)vga; i < (paddr_t)vga + fbWidth * fbHeight * sizeof(short) ; i += PAGE_SIZE) {
pageMap(i, i, PAGING_MEM_WRITE);
}
}