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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c
index e11cfee..5f70bc7 100644
--- a/src/kernel/tasks/process.c
+++ b/src/kernel/tasks/process.c
@@ -136,8 +136,7 @@ void process_suspend(u32 pid)
{
debug("Suspending process %d", pid);
process_print_tree();
- if (pid == 1)
- panic("Root process died");
+ assert(pid != 1);
struct process *proc = process_from_pid(pid);
@@ -184,12 +183,7 @@ struct process *process_make_new()
proc->registers.ds = 0x23;
proc->registers.ss = 0x23;
proc->cr3 = paging_make_directory();
-
proc->brk = 0x50000000;
-
- for (int i = 0; i < 1024; i++)
- proc->cr3[i] = kernel_page_directory[i];
-
proc->pid = pid++;
return proc;
}