mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
UefiCpuPkg/CpuDxe: Don't use gBS->Stall
The CpuDxe driver may run before the gEfiMetronomeArchProtocolGuid protocol is installed. gBS->Stall does not work until this arch protocol is installed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18914 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
02018760ca
commit
f73dd6f5bb
@ -801,7 +801,7 @@ StartupAllAPs (
|
|||||||
goto Done;
|
goto Done;
|
||||||
}
|
}
|
||||||
|
|
||||||
gBS->Stall (gPollInterval);
|
MicroSecondDelay (gPollInterval);
|
||||||
mMpSystemData.Timeout -= gPollInterval;
|
mMpSystemData.Timeout -= gPollInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -987,7 +987,7 @@ StartupThisAP (
|
|||||||
return EFI_TIMEOUT;
|
return EFI_TIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
gBS->Stall (gPollInterval);
|
MicroSecondDelay (gPollInterval);
|
||||||
CpuData->Timeout -= gPollInterval;
|
CpuData->Timeout -= gPollInterval;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1755,7 +1755,7 @@ InitializeMpSupport (
|
|||||||
if (CheckAllAPsSleeping ()) {
|
if (CheckAllAPsSleeping ()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
gBS->Stall (gPollInterval);
|
MicroSecondDelay (gPollInterval);
|
||||||
Timeout += gPollInterval;
|
Timeout += gPollInterval;
|
||||||
} while (Timeout <= PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));
|
} while (Timeout <= PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));
|
||||||
ASSERT (Timeout <= PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));
|
ASSERT (Timeout <= PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user