diff options
author | katchup <alexis211@gmail.com> | 2010-12-12 17:29:31 +0100 |
---|---|---|
committer | katchup <alexis211@gmail.com> | 2010-12-12 17:29:31 +0100 |
commit | 07b15b375ee7cc87f476200b2fd6205959ac0ba4 (patch) | |
tree | 37176f4e76285b3971c721a027aff047b81f4a2e /src/kernel/task/task.c | |
parent | 43c6a4a1e7d76e82b9a1d4757c5b5c12f92905d7 (diff) | |
download | TCE-07b15b375ee7cc87f476200b2fd6205959ac0ba4.tar.gz TCE-07b15b375ee7cc87f476200b2fd6205959ac0ba4.zip |
New heap, simple and bug-free, but inefficient.
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(); |