If the last PEIM dispatched in Pre-Memory PEI is the last PEIM in the BFV, then no...
authormdkinney <mdkinney@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 29 May 2008 23:10:44 +0000 (23:10 +0000)
committermdkinney <mdkinney@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 29 May 2008 23:10:44 +0000 (23:10 +0000)
Reset CurrentPeimCount on the transition from Pre-Memory PEI to Post-Memory PEI

git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5313 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c

index b931b79..079e798 100644 (file)
@@ -577,6 +577,11 @@ Returns:
               //\r
               PrivateInMem->PeiMemoryInstalled     = TRUE;\r
 \r
+              //\r
+              // Restart scan of all PEIMs on next pass\r
+              //\r
+              PrivateInMem->CurrentPeimCount = 0;\r
+\r
               //\r
               // Shadow PEI Core. When permanent memory is avaiable, shadow\r
               // PEI Core and PEIMs to get high performance.\r