edk2/MdeModulePkg
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
..
Application MdeModulePkg/UiApp: Remove unused variable 2025-09-04 01:43:03 +00:00
Bus MdeModulePkg: ScsiDiskDxe: Query Write Protected State 2025-10-16 12:25:52 +00:00
Core MdeModulePkg/Core/Dxe: Fix TPL inversion from DEBUG() message 2025-10-30 03:26:29 +00:00
Include MdeModulePkg: Add PcdDelayedDispatchMaxEntries 2025-09-23 09:02:04 +08:00
Library MdeModulePkg: CpuExceptionHandlerLibNull: Return Success On Null Func 2025-10-23 00:57:59 +00:00
Logo MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Test MdeModulePkg/Test/Include: Fix SecurityManagement include guard 2025-09-19 04:41:29 +00:00
Universal MdeModulePkg/AcpiTableDxe:Improving InitializeAcpiTableDxe behavior. 2025-10-21 11:46:17 +00:00
MdeModulePkg.ci.yaml MdeModulePkg: Add duplicate exception for gUiAppFileGuid 2025-03-06 14:18:10 +01:00
MdeModulePkg.dec MdeModulePkg/DxeCapsuleLibFmp:Added PCD for EmbeddedDriver Support 2025-10-14 17:45:19 +00:00
MdeModulePkg.dsc MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
MdeModulePkg.uni MdeModulePkg: Deprecate EFI_UNICODE_COLLATION_PROTOCOL_GUID 2025-09-05 13:50:50 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00