]> git.proxmox.com Git - mirror_edk2.git/blobdiff - InOsEmuPkg/CpuRuntimeDxe/MpService.c
InOsEmuPkg PcdEmuFileSystem: Set to architecture independent path
[mirror_edk2.git] / InOsEmuPkg / CpuRuntimeDxe / MpService.c
index 8d7666b7b42c51e9c4312eab546ff13ea7bac704..6bb9dea2b37bf7dc13cb1a07014f5cb54d3d4554 100644 (file)
   APs to help test system memory in parallel with other device initialization.\r
   Diagnostics applications may also use this protocol for multi-processor.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 Portitions Copyright (c) 2011, Apple Inc. All rights reserved.\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                          \r
-    \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  \r
+\r
 **/\r
 \r
 #include "CpuDriver.h"\r
@@ -929,6 +929,8 @@ CpuCheckAllAPsStatus (
   EFI_STATUS            Status;\r
   PROCESSOR_STATE       ProcessorState;\r
 \r
+  ProcessorData = (PROCESSOR_DATA_BLOCK *) Context;\r
+\r
   for (ProcessorNumber = 0; ProcessorNumber < gMPSystem.NumberOfProcessors; ProcessorNumber++) {\r
     if ((ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_AS_BSP_BIT) == PROCESSOR_AS_BSP_BIT) {\r
      // Skip BSP\r
@@ -1212,7 +1214,6 @@ CpuMpServicesInit (
   EFI_HANDLE              Handle;\r
   EMU_IO_THUNK_PROTOCOL   *IoThunk;\r
   UINTN                   MaxCpus;\r
-  char                    *Str;\r
 \r
   MaxCpus = 1; // BSP\r
   \r