rt: Create new tasks through the current thread's scheduler

This commit is contained in:
Brian Anderson
2012-02-03 15:21:24 -08:00
parent 3d0e7a7af3
commit bf250bec7c

View File

@@ -385,7 +385,7 @@ get_task_id() {
extern "C" CDECL rust_task_id
new_task() {
rust_task *task = rust_task_thread::get_task();
return task->kernel->create_task(task, NULL);
return task->sched->create_task(task, NULL);
}
extern "C" CDECL void