소스 검색

[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…
취소
저장