You've already forked edk2-upstream
mirror of
https://github.com/Dasharo/edk2-upstream.git
synced 2026-03-06 15:03:57 -08:00
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>
1.5 KiB
1.5 KiB