From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: More than 10 MX records returned) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 B47B420356262 for ; Sun, 10 Dec 2017 05:25:59 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2017 05:30:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,388,1508828400"; d="scan'208";a="1325395" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 10 Dec 2017 05:30:35 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 10 Dec 2017 05:30:35 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 10 Dec 2017 05:30:35 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Sun, 10 Dec 2017 21:30:33 +0800 From: "Gao, Liming" To: Ard Biesheuvel , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "leif.lindholm@linaro.org" Thread-Topic: [edk2] [PATCH] MdePkg/Uefi ARM: only support native ARM/Thumb images Thread-Index: AQHTcDz+bH0fhMaXlkq4QbmYtzHYNqM8f14A Date: Sun, 10 Dec 2017 13:30:33 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E18E219@SHSMSX104.ccr.corp.intel.com> References: <20171208155514.18926-1-ard.biesheuvel@linaro.org> In-Reply-To: <20171208155514.18926-1-ard.biesheuvel@linaro.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdePkg/Uefi ARM: only support native ARM/Thumb images X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Dec 2017 13:25:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ar= d Biesheuvel > Sent: Friday, December 8, 2017 11:55 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Gao, Liming ; leif.lindholm@linaro.org; Ard Biesheuvel > > Subject: [edk2] [PATCH] MdePkg/Uefi ARM: only support native ARM/Thumb im= ages >=20 > The ARM calling convention is fundamentally incompatible with EBC, > and having a cross compatible machine type identical to the native > type does not make a lot of sense either. So restrict the compatible > machine type for ARM to EFI_IMAGE_MACHINE_ARMTHUMB_MIXED, and remove > the cross compatible. >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel > --- > MdePkg/Include/Uefi/UefiBaseType.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) >=20 > diff --git a/MdePkg/Include/Uefi/UefiBaseType.h b/MdePkg/Include/Uefi/Uef= iBaseType.h > index 728a0472602a..d9556cd2ec4e 100644 > --- a/MdePkg/Include/Uefi/UefiBaseType.h > +++ b/MdePkg/Include/Uefi/UefiBaseType.h > @@ -270,10 +270,9 @@ typedef union { >=20 > #elif defined (MDE_CPU_ARM) >=20 > -#define EFI_IMAGE_MACHINE_TYPE_SUPPORTED(Machine) \ > - (((Machine) =3D=3D EFI_IMAGE_MACHINE_ARMTHUMB_MIXED) || ((Machine) =3D= =3D EFI_IMAGE_MACHINE_EBC)) > +#define EFI_IMAGE_MACHINE_TYPE_SUPPORTED(Machine) ((Machine) =3D=3D EFI_= IMAGE_MACHINE_ARMTHUMB_MIXED) >=20 > -#define EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED(Machine) ((Machine) =3D= =3D EFI_IMAGE_MACHINE_ARMTHUMB_MIXED) > +#define EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED(Machine) (FALSE) >=20 > #elif defined (MDE_CPU_AARCH64) >=20 > -- > 2.11.0 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel