From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 63D7C81D96 for ; Sun, 13 Nov 2016 17:27:56 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP; 13 Nov 2016 17:28:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,487,1473145200"; d="scan'208";a="30665630" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 13 Nov 2016 17:28:00 -0800 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 13 Nov 2016 17:28:00 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 13 Nov 2016 17:28:00 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.239]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.239]) with mapi id 14.03.0248.002; Mon, 14 Nov 2016 09:27:57 +0800 From: "Yao, Jiewen" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Zeng, Star" , "Yao, Jiewen" , "Gao, Liming" Thread-Topic: [PATCH] MdeModulePkg DxeCore: Show error message on unaligned FvImage issue Thread-Index: AQHSO+C8heLQn4N7U0mi9fIrFiMt5qDXtJpwgAAAIuA= Date: Mon, 14 Nov 2016 01:27:57 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386CFE0D@shsmsx102.ccr.corp.intel.com> References: <1478843939-23164-1-git-send-email-star.zeng@intel.com> <0C09AFA07DD0434D9E2A0C6AEB048310395B315F@shsmsx102.ccr.corp.intel.com> In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB048310395B315F@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg DxeCore: Show error message on unaligned FvImage issue X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 01:27:56 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: jiewen.yao@intel.com >=20 >=20 > -----Original Message----- > From: Zeng, Star > Sent: Friday, November 11, 2016 1:59 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen ; > Gao, Liming > Subject: [PATCH] MdeModulePkg DxeCore: Show error message on > unaligned FvImage issue >=20 > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D205 >=20 > Cc: Jiewen Yao > Cc: Liming Gao > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Star Zeng > --- > MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > index f031ef110c19..bc7b34140f84 100644 > --- a/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > +++ b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > @@ -4,7 +4,7 @@ > It consumes FV HOBs and creates read-only Firmare Volume Block > protocol > instances for each of them. >=20 > -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
> +Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made > available under the terms and conditions of the BSD License which > accompanies this distribution. The full text of the license may be found= at > @@ -495,6 +495,13 @@ ProduceFVBProtocolOnBuffer ( > // > // FvImage buffer is not at its required alignment. > // > + DEBUG (( > + DEBUG_ERROR, > + "Unaligned FvImage found at 0x%lx:0x%lx, the required > alignment is 0x%x\n", > + BaseAddress, > + Length, > + FvAlignment > + )); > return EFI_VOLUME_CORRUPTED; > } > } > -- > 2.7.0.windows.1