Fix debugger's CPU halting

This commit is contained in:
Ali Mashtizadeh 2015-11-13 14:41:35 -08:00
parent 1fdc2fd933
commit 069e7b44b7
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,10 @@ void
Debug_HaltCPUs() Debug_HaltCPUs()
{ {
debugCmd = 0; debugCmd = 0;
if (MP_GetCPUs() == 1)
return;
LAPIC_BroadcastNMI(T_DEBUGIPI); LAPIC_BroadcastNMI(T_DEBUGIPI);
// Wait for processors to enter // Wait for processors to enter

View File

@ -112,6 +112,7 @@ MP_Init()
lastCPU = i; lastCPU = i;
} }
lastCPU++;
} }
void void