Remove private data structure in PEI core entry point.
[mirror_edk2.git] / EdkModulePkg / Core / Pei / PeiMain / PeiMain.c
index f857960..5d439f7 100644 (file)
@@ -76,7 +76,7 @@ EFI_STATUS
 EFIAPI\r
 PeiCore (\r
   IN EFI_PEI_STARTUP_DESCRIPTOR  *PeiStartupDescriptor,\r
-  IN PEI_CORE_INSTANCE           *OldCoreData\r
+  IN VOID                        *Data\r
   )\r
 /*++\r
 \r
@@ -104,8 +104,10 @@ Returns:
   PEI_CORE_TEMP_POINTERS                                TempPtr;\r
   PEI_CORE_DISPATCH_DATA                                *DispatchData;\r
   UINT64                                                mTick;\r
+  PEI_CORE_INSTANCE                                     *OldCoreData;\r
 \r
   mTick = 0;\r
+  OldCoreData = (PEI_CORE_INSTANCE *) Data;\r
 \r
   if (PerformanceMeasurementEnabled()) {\r
     if (OldCoreData == NULL) {\r