aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tasks/process.c')
-rw-r--r--src/kernel/tasks/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c
index c4ab74a..75419ba 100644
--- a/src/kernel/tasks/process.c
+++ b/src/kernel/tasks/process.c
@@ -188,7 +188,7 @@ struct process *process_make_new()
proc->brk = 0x50000000;
for (int i = 0; i < 1024; i++)
- proc->cr3->tables[i] = paging_kernel_directory->tables[i];
+ proc->cr3[i] = kernel_page_directory[i];
proc->pid = pid++;
return proc;
@@ -232,4 +232,4 @@ u32 uspawn(char *path)
log("Spawned");
process_force_switch();
return 0;
-} \ No newline at end of file
+}