tasking: fix separate page directory creation for new ring0 tasks

This commit is contained in:
2025-06-01 00:15:06 +03:00
parent 9000d76441
commit f47a4a451d
3 changed files with 14 additions and 5 deletions
+5
View File
@@ -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;