diff options
author | Michael Brown | 2014-08-05 21:49:42 +0200 |
---|---|---|
committer | Michael Brown | 2014-08-06 00:10:33 +0200 |
commit | 7b3cc18462425ab816348103f1bfa2546d248d37 (patch) | |
tree | ed3c38e2d663c51e74d81f7638b2ead8afd4aaaf /src/include/ipxe/efi/efi_driver.h | |
parent | [efi] Provide centralised definitions of commonly-used GUIDs (diff) | |
download | ipxe-7b3cc18462425ab816348103f1bfa2546d248d37.tar.gz ipxe-7b3cc18462425ab816348103f1bfa2546d248d37.tar.xz ipxe-7b3cc18462425ab816348103f1bfa2546d248d37.zip |
[efi] Open device path protocol only at point of use
Some EFI 1.10 systems (observed on an Apple iMac) do not allow us to
open the device path protocol with an attribute of
EFI_OPEN_PROTOCOL_BY_DRIVER and so we cannot maintain a safe,
long-lived pointer to the device path. Work around this by instead
opening the device path protocol with an attribute of
EFI_OPEN_PROTOCOL_GET_PROTOCOL whenever we need to use it.
Debugged-by: Curtis Larsen <larsen@dixie.edu>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/efi_driver.h')
-rw-r--r-- | src/include/ipxe/efi/efi_driver.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/ipxe/efi/efi_driver.h b/src/include/ipxe/efi/efi_driver.h index 21bff0e5..1b890b06 100644 --- a/src/include/ipxe/efi/efi_driver.h +++ b/src/include/ipxe/efi/efi_driver.h @@ -19,8 +19,6 @@ struct efi_device { struct device dev; /** EFI device handle */ EFI_HANDLE device; - /** Device path */ - EFI_DEVICE_PATH_PROTOCOL *path; /** Driver for this device */ struct efi_driver *driver; /** Driver-private data */ |