Browse Source

[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 years ago
parent
commit
331ac451e7
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/interface/efi/efi_block.c

+ 4
- 0
src/interface/efi/efi_block.c View File

638
 		goto err_sandev_find;
638
 		goto err_sandev_find;
639
 	}
639
 	}
640
 
640
 
641
+	/* Release SNP devices */
642
+	efi_snp_release();
643
+
641
 	/* Connect all possible protocols */
644
 	/* Connect all possible protocols */
642
 	efi_block_connect ( sandev );
645
 	efi_block_connect ( sandev );
643
 
646
 
673
 
676
 
674
 	bs->FreePool ( handles );
677
 	bs->FreePool ( handles );
675
  err_locate_file_systems:
678
  err_locate_file_systems:
679
+	efi_snp_claim();
676
  err_sandev_find:
680
  err_sandev_find:
677
 	return rc;
681
 	return rc;
678
 }
682
 }

Loading…
Cancel
Save