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
kuqin12 and joschock committed Oct 15, 2024
1 parent 7f847c0 commit 9cd9efb
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 9cd9efb

Please sign in to comment.