[efi] Do not raise TPL within EFI_DRIVER_BINDING_PROTOCOL.Supported()
authorMichael Brown <mcb30@ipxe.org>
Mon, 26 Mar 2018 11:10:09 +0000 (12:10 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 26 Mar 2018 11:10:09 +0000 (12:10 +0100)
commit4f362a032b21ae201a58f59b5885e7613e326db3
tree4e331740f21d9b0a78376b01013a33ff455f3bf2
parent331ac451e7bcbe49f8fad16f5b6ea5330c9c169b
[efi] Do not raise TPL within EFI_DRIVER_BINDING_PROTOCOL.Supported()

When booting some versions of the UEFI shell, our driver binding
protocol's Supported() entry point is called at TPL_NOTIFY for no
discernible reason.  Attempting to raise to TPL_CALLBACK triggers an
immediate assertion failure in the firmware.

Since our Supported() method can run at any TPL, fix by simply not
attempting to raise the TPL within this method.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_driver.c