Skip to content

Commit

Permalink
[efi] Release SNP devices before starting SAN boot image
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Mar 26, 2018
1 parent baaf500 commit 331ac45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interface/efi/efi_block.c
Expand Up @@ -638,6 +638,9 @@ static int efi_block_boot ( unsigned int drive, const char *filename ) {
goto err_sandev_find;
}

/* Release SNP devices */
efi_snp_release();

/* Connect all possible protocols */
efi_block_connect ( sandev );

Expand Down Expand Up @@ -673,6 +676,7 @@ static int efi_block_boot ( unsigned int drive, const char *filename ) {

bs->FreePool ( handles );
err_locate_file_systems:
efi_snp_claim();
err_sandev_find:
return rc;
}
Expand Down

0 comments on commit 331ac45

Please sign in to comment.