Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: ba91d0292e593df8528b66f99c1b0b14fadc8e16
      
https://github.com/tianocore/edk2/commit/ba91d0292e593df8528b66f99c1b0b14fadc8e16
  Author: Wendy Liao <[email protected]>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c

  Log Message:
  -----------
  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 <[email protected]>
Cc: Tim Lewis <[email protected]>
Reported-by: Esther Lee <[email protected]>
Signed-off-by: Wendy Liao <[email protected]>
Reviewed-by: Liming Gao <[email protected]>




_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to