瀏覽代碼

[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 年之前
父節點
當前提交
331ac451e7
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      src/interface/efi/efi_block.c

+ 4
- 0
src/interface/efi/efi_block.c 查看文件

@@ -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…
取消
儲存