Remove Framework concepts and fully port to PI. Remove the use of Hii for hard coded strings.
Note: The LogSmbiosData() function should probably be an MdeModulePkg library function. signed-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12954 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1308,35 +1308,33 @@ CpuReadToBootFunction (
|
||||
|
||||
EFI_STATUS
|
||||
CpuMpServicesInit (
|
||||
VOID
|
||||
OUT UINTN *MaxCpus
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_HANDLE Handle;
|
||||
EMU_IO_THUNK_PROTOCOL *IoThunk;
|
||||
UINTN MaxCpus;
|
||||
|
||||
MaxCpus = 1; // BSP
|
||||
|
||||
*MaxCpus = 1; // BSP
|
||||
IoThunk = GetIoThunkInstance (&gEmuThreadThunkProtocolGuid, 0);
|
||||
if (IoThunk != NULL) {
|
||||
Status = IoThunk->Open (IoThunk);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (IoThunk->ConfigString != NULL) {
|
||||
MaxCpus += StrDecimalToUintn (IoThunk->ConfigString);
|
||||
*MaxCpus += StrDecimalToUintn (IoThunk->ConfigString);
|
||||
gThread = IoThunk->Interface;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (MaxCpus == 1) {
|
||||
if (*MaxCpus == 1) {
|
||||
// We are not MP so nothing to do
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
gPollInterval = PcdGet64 (PcdEmuMpServicesPollingInterval);
|
||||
|
||||
Status = InitializeMpSystemData (MaxCpus);
|
||||
Status = InitializeMpSystemData (*MaxCpus);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user