tasking: fix separate page directory creation for new ring0 tasks
This commit is contained in:
@@ -141,6 +141,11 @@ uint32_t create_page_dir()
|
||||
new_pd[i] = current_pd[i];
|
||||
}
|
||||
|
||||
int vga_pde_index = 0; // Virtual address 0x000B8000 is covered by PDE[0]
|
||||
if (current_pd[vga_pde_index] & PAGE_PRESENT) {
|
||||
new_pd[vga_pde_index] = current_pd[vga_pde_index];
|
||||
}
|
||||
|
||||
new_pd[1023] = (uint32_t)ppp | 0x03; // Present + Read/Write
|
||||
|
||||
return (uint32_t)new_pd;
|
||||
|
||||
Reference in New Issue
Block a user