// If the spinlock is set, let it complete
if(IS_LOCKED(&glThreadListLock)) return;
- //LogF("Scheduler: CPU = %i\n", CPU);
-
// Get current thread
thread = gaCPUs[CPU].Current;
);
#endif
+
+ if(CPU > MAX_CPUS)
+ LogF("CPU = %i", CPU);
// Set current thread
gaCPUs[CPU].Current = thread;