edk2/MdeModulePkg/Core
Michael D Kinney d145aef952 MdeModulePkg/Core/Dxe: Fix TPL inversion from DEBUG() message
PR #11443 introduced a regression by adding a DEBUG() message
when the lock for events is acquired and that lock is at
TPL_HIGH_LEVEL. If DEBUG() messages are routed through Report
Status Code, and the Report Status Code Protocol has not been
located yet, then a call to gBS->LocateProtocol() is made and
that call raises TPL to TPL_NOTIFY which causes a TPL inversion.

The event lock is used to atomically update gEventSignalQueue.
There is no need for the DEBUG() message to within the event
lock scope.

The fix is to scope the event lock to only the InsertHeadList()
call to update gEventSignalQueue.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-10-30 03:26:29 +00:00
..
Dxe MdeModulePkg/Core/Dxe: Fix TPL inversion from DEBUG() message 2025-10-30 03:26:29 +00:00
DxeIplPeim MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Pei MdeModulePkg: Add PcdDelayedDispatchMaxEntries 2025-09-23 09:02:04 +08:00
PiSmmCore MdeModulePkg: Unify EfiFileName Parsing 2025-07-23 12:57:55 +00:00
RuntimeDxe MdeModulePkg: Align RuntimeDxe function headers with UEFI return values 2024-02-09 22:16:32 +00:00