From a0af6b27288fb1797e618d45ba3b4d6a9c742944 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Tue, 24 Jan 2012 08:39:11 +0000 Subject: 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 --- EmulatorPkg/CpuRuntimeDxe/MpService.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'EmulatorPkg/CpuRuntimeDxe/MpService.c') diff --git a/EmulatorPkg/CpuRuntimeDxe/MpService.c b/EmulatorPkg/CpuRuntimeDxe/MpService.c index ba0ad82504..6eecbbc9bd 100644 --- a/EmulatorPkg/CpuRuntimeDxe/MpService.c +++ b/EmulatorPkg/CpuRuntimeDxe/MpService.c @@ -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; } -- cgit v1.2.3