Selaa lähdekoodia

[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>
tags/v1.20.1
Michael Brown 6 vuotta sitten
vanhempi
commit
331ac451e7
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4
    0
      src/interface/efi/efi_block.c

+ 4
- 0
src/interface/efi/efi_block.c Näytä tiedosto

@@ -638,6 +638,9 @@ static int efi_block_boot ( unsigned int drive, const char *filename ) {
638 638
 		goto err_sandev_find;
639 639
 	}
640 640
 
641
+	/* Release SNP devices */
642
+	efi_snp_release();
643
+
641 644
 	/* Connect all possible protocols */
642 645
 	efi_block_connect ( sandev );
643 646
 
@@ -673,6 +676,7 @@ static int efi_block_boot ( unsigned int drive, const char *filename ) {
673 676
 
674 677
 	bs->FreePool ( handles );
675 678
  err_locate_file_systems:
679
+	efi_snp_claim();
676 680
  err_sandev_find:
677 681
 	return rc;
678 682
 }

Loading…
Peruuta
Tallenna