Modules/ATA - Debugging issue with VBox, problem still there
[tpg/acess2.git] / Kernel / arch / x86_64 / proc.c
index 1d1513b..5739470 100644 (file)
@@ -761,18 +761,22 @@ void Proc_Scheduler(int CPU)
        // Error Check
        if(thread == NULL) {
                thread = gaCPUs[CPU].IdleThread;
-               Warning("Hmm... Threads_GetNextToRun returned NULL, I don't think this should happen.\n");
+               //Warning("Hmm... Threads_GetNextToRun returned NULL, I don't think this should happen.\n");
+               //LogF("Zzzzz.\n");
                return;
        }
        
        #if DEBUG_TRACE_SWITCH
-       Log("Switching to task %i, CR3 = 0x%x, RIP = %p",
+       LogF("Switching to task %i, CR3 = 0x%x, RIP = %p",
                thread->TID,
                thread->MemState.CR3,
                thread->SavedState.RIP
                );
        #endif
        
+       
+       if(CPU > MAX_CPUS)
+               LogF("CPU = %i", CPU);
        // Set current thread
        gaCPUs[CPU].Current = thread;
        

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