diff options
Diffstat (limited to 'src/kernel/task/task.c')
-rw-r--r-- | src/kernel/task/task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/task/task.c b/src/kernel/task/task.c index f074c77..3d322c1 100644 --- a/src/kernel/task/task.c +++ b/src/kernel/task/task.c @@ -35,9 +35,9 @@ void tasking_init() { kernel_process->parent = kernel_process; kernel_process->pagedir = kernel_pagedir; kernel_process->next = 0; + kernel_process->threads = 0; current_thread = 0; idle_thread = thread_new(kernel_process, task_idle, 0, 0); - kernel_process->threads = idle_thread; sti(); monitor_write("[Tasking] "); } @@ -278,6 +278,7 @@ struct process *process_new(struct process* parent, uint32_t uid, uint32_t privi p->pid = (nextpid++); p->uid = uid; p->thread_count = 0; + p->threads = 0; p->privilege = privilege; p->parent = parent; p->pagedir = pagedir_new(); |