// === GLOBALS ===
// --- Current State ---
#if USE_MP
-tThread *gCurrentThread[MAX_CPUS] = NULL;
+tThread *gCurrentThread[MAX_CPUS] = {NULL};
#else
tThread *gCurrentThread = NULL;
#endif
// Change Stacks
Proc_ChangeStack();
-
+}
+
+/**
+ * \fn void Proc_Start()
+ * \brief Start process scheduler
+ */
+void Proc_Start()
+{
// Start Interrupts (and hence scheduler)
__asm__ __volatile__("sti");
}
// === IMPORTS ===
extern void ArchThreads_Init();
+extern void Proc_Start();
extern tThread *Proc_GetCurThread();
extern int Proc_Clone(Uint *Err, Uint Flags);
for(;;) __asm__ __volatile__ ("hlt"); // Just yeilds
}
#endif
+
+ Proc_Start();
}
/**