Kernel/arm7 - Fiddling on process switching
[tpg/acess2.git] / Kernel / arch / arm7 / proc.c
index 9b4dc18..28b0af0 100644 (file)
@@ -9,10 +9,13 @@
 #include <threads_int.h>
 #include <hal_proc.h>
 
+// === IMPORTS ===
+extern tThread gThreadZero;
+
 // === PROTOTYPES ===
 
 // === GLOBALS ===
-tThread        *gpCurrentThread;
+tThread        *gpCurrentThread = &gThreadZero;
 
 // === CODE ===
 void ArchThreads_Init(void)
@@ -52,6 +55,11 @@ void Proc_CallFaultHandler(tThread *Thread)
 
 }
 
+void Proc_Reschedule(void)
+{
+       // TODO: Task switching!
+}
+
 void Proc_DumpThreadCPUState(tThread *Thread)
 {
        

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