mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04: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> |
||
|---|---|---|
| .. | ||
| Application | ||
| Bus | ||
| Core | ||
| Include | ||
| Library | ||
| Logo | ||
| Test | ||
| Universal | ||
| MdeModulePkg.ci.yaml | ||
| MdeModulePkg.dec | ||
| MdeModulePkg.dsc | ||
| MdeModulePkg.uni | ||
| MdeModulePkgExtra.uni | ||