audk/MdeModulePkg/Core/Pei
Wendy Liao ba91d0292e MdeModulePkg/Core/Pei: set AprioriCount=0 before walking through next FV
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4438

The main dispatch loop in PeiDispatcher() goes through each FV and
calls DiscoverPeimsAndOrderWithApriori() to search Apriori file to
reorder all PEIMs then do the PEIM dispatched.

DiscoverPeimsAndOrderWithApriori() calculates Apriori file count for
every FV once and set Private->AprioriCount, but Private->AprioriCount
doesn't be set to 0 before dispatch loop walking through the next FV.

It causes the peim which sort on less than Private->AprioriCount and
depex is not satisfied would be dispatched when dispatch loop go through
to a scaned FV, even the peim is not set in APRIORI file.

Cc: Leon Chen <leon.chen@insyde.com>
Cc: Tim Lewis <tim.lewis@insyde.com>
Reported-by: Esther Lee <esther.lee@insyde.com>
Signed-off-by: Wendy Liao <wendy.liao@insyde.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-05-24 12:59:54 +00:00
..
BootMode MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuIo MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dependency MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dispatcher MdeModulePkg/Core/Pei: set AprioriCount=0 before walking through next FV 2023-05-24 12:59:54 +00:00
FwVol MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Hob MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Image MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Memory MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciCfg2 MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiMain MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Ppi MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Reset MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Security MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StatusCode MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PeiCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PeiMain.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiMain.inf MdeModulePkg/Core: Create Migrated FV Info Hob for calculating hash (CVE-2019-11098) 2020-07-28 01:43:16 +00:00