From nobody Sun Apr 28 10:03:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail(p=none dis=none) header.from=outlook.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1525530294832696.6541606426651; Sat, 5 May 2018 07:24:54 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 80F912282E5BC; Sat, 5 May 2018 07:24:53 -0700 (PDT) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01olkn0818.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::818]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C40B82277AF1E for ; Sat, 5 May 2018 07:24:51 -0700 (PDT) Received: from DB5EUR01FT004.eop-EUR01.prod.protection.outlook.com (10.152.4.59) by DB5EUR01HT021.eop-EUR01.prod.protection.outlook.com (10.152.5.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16; Sat, 5 May 2018 14:24:49 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.4.53) by DB5EUR01FT004.mail.protection.outlook.com (10.152.4.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.735.16 via Frontend Transport; Sat, 5 May 2018 14:24:49 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e%17]) with mapi id 15.20.0715.024; Sat, 5 May 2018 14:24:49 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a01:111:f400:fe1f::818; helo=eur01-ve1-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fLJBAqLQHl9Q/iMy+qckRtB5i3gI95l9JgHtB/s7irQ=; b=OxlpEzAvn1x0L1waM3szzybgfqUKZlHuuROPu5GLuiQxkOlDHO9G66ijAuLK9a05Zem67D1VsKkeryD/n4XNRCqNK9OPkjIJJNOQGddZUrhlQsUAOYJ0IAVQ1ccMj+kNitu9OHNaTGQHfCDS4q4Vj9467RDCbQnppD55L1YKNSirAdXF9Q3tyVoxgCaCg2lpFDbNb+8D6xKhYnrqhimIzK5zsR/e6pNabbHEqgTP/ckVi5e1OMVrMpZCXnpQYmlzIrOr7sD1kSPD5orsw+wl0j5wIM/pSj8GIe/eqKucJ18MvUwNfIFYhI/JYSXMe6vIDqJeveFmuzW5AJlRfv4H2w== From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] MdePkg/BaseLib: Globally include ChkStk.c Thread-Index: AQHT5HzS0BO4vdQ7tUOW3NfrcoDhyg== Date: Sat, 5 May 2018 14:24:49 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0202CA0010.eurprd02.prod.outlook.com (2603:10a6:208:1::23) To VI1PR0801MB1790.eurprd08.prod.outlook.com (2603:10a6:800:5b::15) x-incomingtopheadermarker: OriginalChecksum:D41A16E59409AA60DB943FC1B92C859CAEC2C5F19370FF9FF8D8DE02713408FC; UpperCasedChecksum:8FBCAD53C1088D5BC25AFC7DF8BA4BB50AA9E8615392CA354B33476D3957CB22; SizeAsReceived:7448; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [a2/jAbnUpL/qnO+2sytae07X1bNsP4bx] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT021; 7:W6uinQeFBW4t9VKvvEXgFF/YM5PF83tP8NGNoa+qRfG1IHO/PZ+cp2cMGrR1hJKQyAr+Hob5YvzDe3UDYv708qFhnZtV4w5utOZtnxXjHo4FXylywm+TqWD0vtdEBkHTY5byZZWTGzY6zOskoG+vlBECZcxEuun/7t2ePguLXk6GJiT76KZRJ7z17L83qoE3pfzQV9Zuak+Usharo5tIonTJYocynetGnUiZtokW7SEXvcDfVlywzjmTqMqTtAZH x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045); SRVR:DB5EUR01HT021; x-ms-traffictypediagnostic: DB5EUR01HT021: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:DB5EUR01HT021; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT021; x-forefront-prvs: 0663390E1B x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT021; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:; x-microsoft-antispam-message-info: LJ0O4NUgqa0/foN64awU627nffeQO2UNvyxLSu7YE67w84MxJYGP9QBP9r+cN1CmzR7HsNX3J/JzEZQsGJVheNJMMTIPJMEIu+opjnWioILOwbl9eGdmx1q6CXpg/e9KvBHuKC1WWoJjKpXGJhWOZxkb6jvpVY1ru8STUjx1HtlW67khApxoJxAlFjw89GEb MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 572fc25a-52df-4cf7-2088-08d5b293f53e X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 572fc25a-52df-4cf7-2088-08d5b293f53e X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2018 14:24:49.2375 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT021 Subject: [edk2] [PATCH] MdePkg/BaseLib: Globally include ChkStk.c X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "michael.d.kinney@intel.com" , "liming.gao@intel.com" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Initially added for GCC build support, this patch includes the function for all compilers and all architectures. This is done as huge variables on the stack may cause the generation of calls to this intrinsic function for Microsoft compilers, even for the IA32 architecture, too. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser --- MdePkg/Library/BaseLib/{ChkStkGcc.c =3D> ChkStk.c} | 48 ++++++++++--------= -- MdePkg/Library/BaseLib/BaseLib.inf | 4 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/MdePkg/Library/BaseLib/ChkStkGcc.c b/MdePkg/Library/BaseLib/Ch= kStk.c similarity index 74% rename from MdePkg/Library/BaseLib/ChkStkGcc.c rename to MdePkg/Library/BaseLib/ChkStk.c index ecba3853b159..59e6d73f9331 100644 --- a/MdePkg/Library/BaseLib/ChkStkGcc.c +++ b/MdePkg/Library/BaseLib/ChkStk.c @@ -1,24 +1,24 @@ -/** @file - Provides hack function for passng GCC build. - - Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
- This program and the accompanying materials - are licensed and made available under the terms and conditions of the BS= D License - which accompanies this distribution. The full text of the license may b= e found at - http://opensource.org/licenses/bsd-license.php. - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. - -**/ - -#include "BaseLibInternals.h" - -/** - Hack function for passing GCC build. -**/ -VOID=20 -__chkstk()=20 -{ -} - +/** @file + Provides hack function for passing build. + + Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+ This program and the accompanying materials + are licensed and made available under the terms and conditions of the BS= D License + which accompanies this distribution. The full text of the license may b= e found at + http://opensource.org/licenses/bsd-license.php. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. + +**/ + +#include "BaseLibInternals.h" + +/** + Hack function for passing build. +**/ +VOID=20 +__chkstk()=20 +{ +} + diff --git a/MdePkg/Library/BaseLib/BaseLib.inf b/MdePkg/Library/BaseLib/Ba= seLib.inf index 5fbbd02a94b6..d23a6db2581a 100644 --- a/MdePkg/Library/BaseLib/BaseLib.inf +++ b/MdePkg/Library/BaseLib/BaseLib.inf @@ -1,7 +1,7 @@ ## @file # Base Library implementation. # -# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
# @@ -64,6 +64,7 @@ [Sources] SafeString.c String.c FilePaths.c + ChkStk.c BaseLibInternals.h =20 [Sources.Ia32] @@ -781,7 +782,6 @@ [Sources.X64] X64/DisableCache.S | GCC X64/RdRand.nasm| GCC X64/RdRand.S | GCC - ChkStkGcc.c | GCC=20 =20 [Sources.IPF] Ipf/AccessGp.s --=20 2.17.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel