Nucleus
Barry Object Lists + replacing Task Queues 4d3c382 (3 years, 3 months ago)
diff --git a/task/clone.c b/task/clone.c
index 5e425fa..41cbc48 100644
--- a/task/clone.c
+++ b/task/clone.c
@@ -6,7 +6,7 @@
#include <sys/types.h>
#include <nucleus/task.h>
-extern TaskQueue *readyQueue[];
+extern ObjectList *readyQueue[];
/* Clone a task */
pid_t
@@ -24,7 +24,7 @@ clone(int flags)
child->eip = (uintptr_t) &&end;
asm volatile("mov %%esp, %0" : "=r" (child->esp));
asm volatile("mov %%ebp, %0" : "=r" (child->ebp));
- add_to_queue(readyQueue[child->priority], child);
+ add(readyQueue[child->priority], child);
tid = child->tid;
put(child);
end: