From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com []) by mx.groups.io with SMTP id smtpd.web11.4111.1623826792723508227 for ; Tue, 15 Jun 2021 23:59:56 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: ray.ni@intel.com) IronPort-SDR: IClOO82exNRqrfj+KHgfFewImSCcI05Bt7A9mtEM1KVNZA75Oby2+hPNih9ZdrGEu+W+zn+Qsn xVe9gyG9LtoA== X-IronPort-AV: E=McAfee;i="6200,9189,10016"; a="267274888" X-IronPort-AV: E=Sophos;i="5.83,277,1616482800"; d="scan'208";a="267274888" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 23:59:56 -0700 IronPort-SDR: bjS9XaAIimqFaOIMv+c0pLVaPVDr1dNeApeeIeeyQrVMPn7hqSgA4PpBF9pDjkPRCfKZJsakHS lzK0xZ/ze3BA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,277,1616482800"; d="scan'208";a="488055301" Received: from ray-dev.ccr.corp.intel.com ([10.239.158.87]) by fmsmga002.fm.intel.com with ESMTP; 15 Jun 2021 23:59:54 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Liming Gao Subject: [PATCH v3 3/3] PeiCore: Remove assertion when failing to load PE image Date: Wed, 16 Jun 2021 14:59:22 +0800 Message-Id: <20210616065922.196-4-ray.ni@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20210616065922.196-1-ray.ni@intel.com> References: <20210616065922.196-1-ray.ni@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable EFI_PEI_LOAD_FILE_PPI is invoked by DxeIpl for loading DxeCore. It's possible that the instance produced by PeiCore fails to load but other instances of EFI_PEI_LOAD_FILE_PPI can load. Signed-off-by: Ray Ni Cc: Jian J Wang Acked-by: Hao A Wu Cc: Dandan Bi Cc: Liming Gao --- MdeModulePkg/Core/Pei/Image/Image.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Im= age/Image.c index 1d15774527..5af3895191 100644 --- a/MdeModulePkg/Core/Pei/Image/Image.c +++ b/MdeModulePkg/Core/Pei/Image/Image.c @@ -1,7 +1,7 @@ /** @file=0D Pei Core Load Image Support=0D =0D -Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
=0D +Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
=0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D **/=0D @@ -661,9 +661,6 @@ PeiLoadImageLoadImage ( &ImageEntryPoint=0D );=0D =0D - ASSERT_EFI_ERROR (Status);=0D -=0D -=0D if (EFI_ERROR (Status)) {=0D return Status;=0D }=0D --=20 2.31.1.windows.1