diff options
author | Marvin Borner | 2020-05-31 20:26:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 20:26:40 +0200 |
commit | eaadde5453e33af6826bb03488991aab0297d3dd (patch) | |
tree | f52d06c0841b664abcab547481dca41f4cfb30ff /src/kernel/tasks/process.c | |
parent | 45a5ecc72d8e700614a0751f0e7ec68199885b77 (diff) |
OMG
Diffstat (limited to 'src/kernel/tasks/process.c')
-rw-r--r-- | src/kernel/tasks/process.c | 8 |
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; } |