diff options
author | Michael Brown | 2014-07-08 01:35:49 +0200 |
---|---|---|
committer | Michael Brown | 2014-07-08 01:37:31 +0200 |
commit | bcfd3dea1d6a3ecee1336eca0682791c8dc3777c (patch) | |
tree | f7cdbb212182e44a87e3a38e9d8ab105de16f371 /src/arch/x86/prefix/efiprefix.c | |
parent | [autoboot] Allow autoboot device to be identified by link-layer address (diff) | |
download | ipxe-bcfd3dea1d6a3ecee1336eca0682791c8dc3777c.tar.gz ipxe-bcfd3dea1d6a3ecee1336eca0682791c8dc3777c.tar.xz ipxe-bcfd3dea1d6a3ecee1336eca0682791c8dc3777c.zip |
[efi] Identify autoboot device by MAC address when chainloading
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86/prefix/efiprefix.c')
-rw-r--r-- | src/arch/x86/prefix/efiprefix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/prefix/efiprefix.c b/src/arch/x86/prefix/efiprefix.c index 216b9988..a0347680 100644 --- a/src/arch/x86/prefix/efiprefix.c +++ b/src/arch/x86/prefix/efiprefix.c @@ -24,6 +24,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/device.h> #include <ipxe/efi/efi.h> #include <ipxe/efi/efi_driver.h> +#include <ipxe/efi/efi_autoboot.h> /** * EFI entry point @@ -41,6 +42,9 @@ EFI_STATUS EFIAPI _efi_start ( EFI_HANDLE image_handle, if ( ( efirc = efi_init ( image_handle, systab ) ) != 0 ) goto err_init; + /* Record autoboot device (if any) */ + efi_set_autoboot(); + /* Call to main() */ if ( ( rc = main() ) != 0 ) { efirc = EFIRC ( rc ); |