aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/tasks
diff options
context:
space:
mode:
authorMarvin Borner2020-06-01 23:30:40 +0200
committerMarvin Borner2020-06-01 23:30:40 +0200
commit0b3b63ffdedb2e37e0732c09eb0e967e256f0d71 (patch)
treef92a97a59e15d699b2594d3d313214f241ae8565 /src/kernel/tasks
parent5782d6b0c10b322d78c5d1284cbd4199d2e0f7ce (diff)
Very clean mmap approach
Sorry for the previous commit messages, I was kind of frustrated.
Diffstat (limited to 'src/kernel/tasks')
-rw-r--r--src/kernel/tasks/process.c2
-rw-r--r--src/kernel/tasks/process.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c
index 5f70bc7..0b13b6b 100644
--- a/src/kernel/tasks/process.c
+++ b/src/kernel/tasks/process.c
@@ -182,7 +182,7 @@ struct process *process_make_new()
proc->registers.cs = 0x1B;
proc->registers.ds = 0x23;
proc->registers.ss = 0x23;
- proc->cr3 = paging_make_directory();
+ proc->cr3 = paging_make_dir();
proc->brk = 0x50000000;
proc->pid = pid++;
return proc;
diff --git a/src/kernel/tasks/process.h b/src/kernel/tasks/process.h
index ef66c2a..5c72e64 100644
--- a/src/kernel/tasks/process.h
+++ b/src/kernel/tasks/process.h
@@ -13,7 +13,7 @@ struct mmap {
};
struct process {
- u32 **cr3;
+ u32 cr3;
struct regs registers;
u32 pid;