summaryrefslogtreecommitdiff
path: root/InOsEmuPkg/CpuRuntimeDxe
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-15 17:22:37 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-15 17:22:37 +0000
commit224e13333b0ef7041e78537db24e1c799dc40183 (patch)
tree14ebd323c65b5c2eaec465b5af82ebb24771aed1 /InOsEmuPkg/CpuRuntimeDxe
parenta690c005e8e584087e989a3552024b1c5a288126 (diff)
downloadedk2-platforms-224e13333b0ef7041e78537db24e1c799dc40183.tar.xz
InOsEmuPkg: Fix warnings with GCC44 toolchain
Signed-off-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11648 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'InOsEmuPkg/CpuRuntimeDxe')
-rw-r--r--InOsEmuPkg/CpuRuntimeDxe/MpService.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/InOsEmuPkg/CpuRuntimeDxe/MpService.c b/InOsEmuPkg/CpuRuntimeDxe/MpService.c
index 8d7666b7b4..6bb9dea2b3 100644
--- a/InOsEmuPkg/CpuRuntimeDxe/MpService.c
+++ b/InOsEmuPkg/CpuRuntimeDxe/MpService.c
@@ -27,17 +27,17 @@
APs to help test system memory in parallel with other device initialization.
Diagnostics applications may also use this protocol for multi-processor.
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
Portitions Copyright (c) 2011, Apple Inc. All rights reserved.
-This program and the accompanying materials are licensed and made available under
-the terms and conditions of the BSD License that accompanies this distribution.
+This program and the accompanying materials are licensed and made available under
+the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php.
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+http://opensource.org/licenses/bsd-license.php.
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
+
**/
#include "CpuDriver.h"
@@ -929,6 +929,8 @@ CpuCheckAllAPsStatus (
EFI_STATUS Status;
PROCESSOR_STATE ProcessorState;
+ ProcessorData = (PROCESSOR_DATA_BLOCK *) Context;
+
for (ProcessorNumber = 0; ProcessorNumber < gMPSystem.NumberOfProcessors; ProcessorNumber++) {
if ((ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) == PROCESSOR_AS_BSP_BIT) {
// Skip BSP
@@ -1212,7 +1214,6 @@ CpuMpServicesInit (
EFI_HANDLE Handle;
EMU_IO_THUNK_PROTOCOL *IoThunk;
UINTN MaxCpus;
- char *Str;
MaxCpus = 1; // BSP