mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 19:38:37 +03:00
[efi] Split out autoexec script portions of efi_autoboot.c
The "autoboot device" and "autoexec script" functionalities in efi_autoboot.c are unrelated except in that they both need to be invoked by efiprefix.c before device drivers are loaded. Split out the autoexec script portions to a separate file to avoid potential confusion. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <ipxe/efi/efi_driver.h>
|
||||
#include <ipxe/efi/efi_snp.h>
|
||||
#include <ipxe/efi/efi_autoboot.h>
|
||||
#include <ipxe/efi/efi_autoexec.h>
|
||||
#include <ipxe/efi/efi_watchdog.h>
|
||||
#include <ipxe/efi/efi_veto.h>
|
||||
|
||||
@@ -48,8 +49,11 @@ 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();
|
||||
/* Identify autoboot device, if any */
|
||||
efi_set_autoboot_ll_addr ( efi_loaded_image->DeviceHandle );
|
||||
|
||||
/* Load autoexec script, if any */
|
||||
efi_autoexec_load ( efi_loaded_image->DeviceHandle );
|
||||
|
||||
/* Claim SNP devices for use by iPXE */
|
||||
efi_snp_claim();
|
||||
|
||||
Reference in New Issue
Block a user