From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com []) by mx.groups.io with SMTP id smtpd.web12.4406.1622701406547707263 for ; Wed, 02 Jun 2021 23:23:27 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: ray.ni@intel.com) IronPort-SDR: hIt6oC5v7KyGcLVfqiSFUvGnulXqCjp3oVELb0A4cmMZZFJZbDOaaNUTZYeqg1M+4YnoZwsSLi rqAXEcHqjx2Q== X-IronPort-AV: E=McAfee;i="6200,9189,10003"; a="191323262" X-IronPort-AV: E=Sophos;i="5.83,244,1616482800"; d="scan'208";a="191323262" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 23:23:27 -0700 IronPort-SDR: W/2LYuneVM1a0a4OWP1vkQPGQ7awQHcA9W0ZDnNgPw15dPhHWcpGfhWDq2e7k1QKFKV2HLIVmE oUpECXc0uIng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,244,1616482800"; d="scan'208";a="447728747" Received: from ray-dev.ccr.corp.intel.com ([10.239.158.87]) by fmsmga008.fm.intel.com with ESMTP; 02 Jun 2021 23:23:24 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Liming Gao Subject: [PATCH v2 3/3] PeiCore: Remove assertion when failing to load PE image Date: Thu, 3 Jun 2021 14:22:59 +0800 Message-Id: <20210603062259.1390-4-ray.ni@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20210603062259.1390-1-ray.ni@intel.com> References: <20210603062259.1390-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 Cc: 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