[efi] Identify autoboot device by MAC address when chainloading

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-07-08 00:35:49 +01:00
parent 00c745e5ff
commit bcfd3dea1d
3 changed files with 89 additions and 0 deletions

View File

@@ -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 );