From 7bc3788c5b9e2e9fdef6fda8788f29170f59b644 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Thu, 29 May 2008 23:10:44 +0000 Subject: If the last PEIM dispatched in Pre-Memory PEI is the last PEIM in the BFV, then no PEIMs will be dispatched in Post Memory PEI. 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 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'MdeModulePkg/Core') diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c index b931b79..079e798 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -578,6 +578,11 @@ Returns: PrivateInMem->PeiMemoryInstalled = TRUE; // + // Restart scan of all PEIMs on next pass + // + PrivateInMem->CurrentPeimCount = 0; + + // // Shadow PEI Core. When permanent memory is avaiable, shadow // PEI Core and PEIMs to get high performance. // -- cgit v1.1