diff options
author | Marvin Borner | 2020-05-16 00:42:04 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-16 00:42:04 +0200 |
commit | ffb7cb87593a5de58f7c5183020576dac9d50fc4 (patch) | |
tree | b4d89fdbf7d5ed39e55f8e708ee87da17b957518 /src/kernel/tasks | |
parent | 916c21af52dc2230d689e1075457c4c29b4b262c (diff) |
Non-dynamic working approach
Diffstat (limited to 'src/kernel/tasks')
-rw-r--r-- | src/kernel/tasks/process.c | 4 | ||||
-rw-r--r-- | src/kernel/tasks/process.h | 4 |
2 files changed, 4 insertions, 4 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 +} diff --git a/src/kernel/tasks/process.h b/src/kernel/tasks/process.h index 08b30ed..00f0f07 100644 --- a/src/kernel/tasks/process.h +++ b/src/kernel/tasks/process.h @@ -13,7 +13,7 @@ struct mmap { }; struct process { - struct page_directory *cr3; + u32 *cr3; struct regs registers; u32 pid; @@ -65,4 +65,4 @@ extern u32 stack_hold; #define WAIT_ERROR (-1) #define WAIT_OKAY 0 -#endif
\ No newline at end of file +#endif |