From: klu2 Date: Thu, 3 Apr 2008 06:25:37 +0000 (+0000) Subject: PrivateInMem->CurrentPeimCount should not be incremented when memory is discovered... X-Git-Tag: edk2-stable201903~21214 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=eca7dbcb9ecd57bc0bfab1c762c3bcc451de056d PrivateInMem->CurrentPeimCount should not be incremented when memory is discovered, line 376 judgment has guarantee that the PEIM who discovery the memory would not be dispatched twice. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4988 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c index f4b18d56d2..b931b79bfb 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -577,11 +577,6 @@ Returns: // PrivateInMem->PeiMemoryInstalled = TRUE; - // - // Make sure we don't retry the same PEIM that added memory - // - PrivateInMem->CurrentPeimCount++; - // // Shadow PEI Core. When permanent memory is avaiable, shadow // PEI Core and PEIMs to get high performance.