aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks
diff options
context:
space:
mode:
authorMarvin Borner2020-05-26 00:37:10 +0200
committerMarvin Borner2020-05-26 00:37:10 +0200
commitb70116dc7c57132c109955c4b174ff2417afda68 (patch)
tree03d63c7ce7e5d4774e9e393991c376cd8c52ebea /src/kernel/tasks
parent7e53464d7bb2187fe0754fbdc04becbdccae11fe (diff)
Some workarounds which apparently work.
Diffstat (limited to 'src/kernel/tasks')
-rw-r--r--src/kernel/tasks/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c
index 900d775..fa41313 100644
--- a/src/kernel/tasks/process.c
+++ b/src/kernel/tasks/process.c
@@ -183,12 +183,12 @@ struct process *process_make_new()
proc->registers.cs = 0x1B;
proc->registers.ds = 0x23;
proc->registers.ss = 0x23;
- proc->cr3 = paging_make_directory(1);
+ proc->cr3 = paging_make_directory();
proc->brk = 0x50000000;
- for (int i = 0; i < 1024; i++)
- proc->cr3[i] = kernel_page_directory[i];
+ /* for (int i = 0; i < 1024; i++) */
+ /* proc->cr3[i] = kernel_page_directory[i]; */
proc->pid = pid++;
return proc;