]> git.proxmox.com Git - mirror_edk2.git/commitdiff
If the last PEIM dispatched in Pre-Memory PEI is the last PEIM in the BFV, then no...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 29 May 2008 23:10:44 +0000 (23:10 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
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.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5313 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c

index b931b79bfb714aefa377bb669bdfe763e87c0a7b..079e798333f6280c3b5357599f057445f571953f 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