From 893244c8b5272df86da5d333332eec26ae8f15f2 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 5 Feb 2010 20:49:34 +0100 Subject: More work, does not work --- src/stem/task/task.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/stem/task/task.c') diff --git a/src/stem/task/task.c b/src/stem/task/task.c index 5ab001c..0352308 100644 --- a/src/stem/task/task.c +++ b/src/stem/task/task.c @@ -25,7 +25,7 @@ struct thread *threads = 0, *current_thread = 0, *idle_thread; uint32_t tasking_tmpStack[0x4000]; -void tasking_init(thread_entry whereToGo, void *data) { +void tasking_init() { cli(); kernel_process = kmalloc(sizeof(struct process)); //This process must be hidden to users kernel_process->pid = kernel_process->uid = kernel_process->threads = 0; @@ -36,10 +36,8 @@ void tasking_init(thread_entry whereToGo, void *data) { current_thread = 0; idle_thread = thread_new(kernel_process, task_idle, 0); threads = 0; //Do not include idle thread in threads - thread_new(kernel_process, whereToGo, data); sti(); - monitor_write("Tasking starting\n"); - tasking_switch(); + monitor_write("Tasking set up\n"); } static struct thread *thread_next() { -- cgit v1.2.3