Nucleus
Barry Per-CPU Scheduler bb0cb77 (3 years, 2 months ago)
diff --git a/task/clone.c b/task/clone.c
index 7f23de3..3a9f579 100644
--- a/task/clone.c
+++ b/task/clone.c
@@ -9,8 +9,6 @@
#include <nucleus/vfs.h>
#include <io.h>
-extern ObjectList *readyQueue[];
-
/* Clone a task */
pid_t
clone(int flags)
@@ -68,7 +66,7 @@ clone(int flags)
asm volatile("mov %%esp, %0" : "=r" (child->esp));
asm volatile("mov %%ebp, %0" : "=r" (child->ebp));
child->eip = (uintptr_t) &&end;
- add(readyQueue[child->priority], child);
+ enqueue_task(child);
tid = child->tid;
put(child);
exit_critical_section();