mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 01:21:10 +03:00
[efi] Release SNP devices before starting SAN boot image
Release SNP devices to allow the SAN booted image to use our EFI_SIMPLE_NETWORK_PROTOCOL instance, and to ensure that the image is started at TPL_APPLICATION. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -638,6 +638,9 @@ static int efi_block_boot ( unsigned int drive, const char *filename ) {
|
|||||||
goto err_sandev_find;
|
goto err_sandev_find;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Release SNP devices */
|
||||||
|
efi_snp_release();
|
||||||
|
|
||||||
/* Connect all possible protocols */
|
/* Connect all possible protocols */
|
||||||
efi_block_connect ( sandev );
|
efi_block_connect ( sandev );
|
||||||
|
|
||||||
@@ -673,6 +676,7 @@ static int efi_block_boot ( unsigned int drive, const char *filename ) {
|
|||||||
|
|
||||||
bs->FreePool ( handles );
|
bs->FreePool ( handles );
|
||||||
err_locate_file_systems:
|
err_locate_file_systems:
|
||||||
|
efi_snp_claim();
|
||||||
err_sandev_find:
|
err_sandev_find:
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user