Fix race condition with scheduler starting before task list is populated
[tpg/acess2.git] / Kernel / threads.c
index 2735661..1644b50 100644 (file)
@@ -13,6 +13,7 @@
 
 // === IMPORTS ===
 extern void    ArchThreads_Init();
+extern void    Proc_Start();
 extern tThread *Proc_GetCurThread();
 extern int     Proc_Clone(Uint *Err, Uint Flags);
 
@@ -94,6 +95,8 @@ void Threads_Init()
                for(;;) __asm__ __volatile__ ("hlt");   // Just yeilds
        }
        #endif
+       
+       Proc_Start();
 }
 
 /**

UCC git Repository :: git.ucc.asn.au