Skip to content

Commit

Permalink
MdeModulePkg: PeiMain: Updated dispatcher for delayed dispatch
Browse files Browse the repository at this point in the history
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4496

This change adds a check for PEI dispatcher to continue dispatching when
there are still pending delayed dispatch requests, to be compatible with
newly integrated Delayed Dispatcher PPI interface.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Debkumar De <debkumar.de@intel.com>
Cc: Catharine West <catharine.west@intel.com>

Co-authored-by: John Schock <joschock@microsoft.com>
Signed-off-by: Kun Qin <kuqin12@gmail.com>
  • Loading branch information
2 people authored and mergify[bot] committed Oct 17, 2024
1 parent d64d1e1 commit 79598f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,10 @@ PeiDispatcher (
// pass. If we did not dispatch a PEIM/FV there is no point in trying again
// as it will fail the next time too (nothing has changed).
//
} while (Private->PeimNeedingDispatch && Private->PeimDispatchOnThisPass);
// Also continue dispatch loop if there are outstanding delay-
// dispatch registrations still running.
} while ((Private->PeimNeedingDispatch && Private->PeimDispatchOnThisPass) ||
(Private->DelayedDispatchTable->Count > 0));
}

/**
Expand Down

0 comments on commit 79598f3

Please sign in to comment.