VGA: fix MAP when reconfigured
This commit is contained in:
parent
a4f5a367ab
commit
cf3c2f10fd
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user