summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
diff options
context:
space:
mode:
authorJoey Vagedes <joeyvagedes@microsoft.com>2025-12-19 01:22:06 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-01-14 07:00:20 +0300
commitce61d5f327d54f34e3937ffe0c75efefdd5d9195 (patch)
tree0d841ca3c71094b3e182af584f1a30e9a95f1d29 /MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
parent1588d5b9f0112a448ff76e80a872e35c1628176e (diff)
downloadedk2-ce61d5f327d54f34e3937ffe0c75efefdd5d9195.tar.xz
MdeModulePkg: DxeReportStatusCodeLib: Do not query protocol
This commit stops the library from querying the protocol database for the status code protocol at the time of library function use. This logic can result in a TPL inversion if the protocol has not yet been cached and the caller is calling the library function when the TPL is higher then TPL_NOTIFY. Instead, the protocol is now located during the constructor of the library. If the protocol is not found, then an on-protocol install event is registered which will cache the protocol. A destructor is also added to close the event in the scenario that the driver is unloaded before the protocol is installed. Signed-off-by: Joey Vagedes <joey.vagedes@gmail.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h')
0 files changed, 0 insertions, 0 deletions