From 2b89ca9ed9d8188a5fdff8ceaabc07fe86b43ad3 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 15 May 2013 23:31:42 +0200 Subject: kern/task: fix task creation The kernel task was inserted instead of the newly created task on task creation (!). Fix that dumb mistake. In addition, insert the new task at the end of the task list. --- kern/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/task.c') diff --git a/kern/task.c b/kern/task.c index 88edda3e..51559434 100644 --- a/kern/task.c +++ b/kern/task.c @@ -86,7 +86,7 @@ task_create(struct task **taskp, const char *name) task_init(task, name, map); spinlock_lock(&task_list_lock); - list_insert_head(&task_list, &kernel_task->node); + list_insert_tail(&task_list, &task->node); spinlock_unlock(&task_list_lock); *taskp = task; -- cgit v1.2.3