From nobody Mon Dec 23 14:20:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1516182846424942.6717424513545; Wed, 17 Jan 2018 01:54:06 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8907621D2BEE6; Wed, 17 Jan 2018 01:48:44 -0800 (PST) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0071.outbound.protection.outlook.com [104.47.34.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8608B2035D311 for ; Wed, 17 Jan 2018 01:48:41 -0800 (PST) Received: from CY1PR03CA0040.namprd03.prod.outlook.com (10.174.128.50) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Wed, 17 Jan 2018 09:54:00 +0000 Received: from BY2FFO11FD029.protection.gbl (2a01:111:f400:7c0c::155) by CY1PR03CA0040.outlook.office365.com (2603:10b6:600::50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Wed, 17 Jan 2018 09:54:00 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD029.mail.protection.outlook.com (10.1.14.212) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Wed, 17 Jan 2018 09:54:00 +0000 Received: from uefi-OptiPlex-790.ap.freescale.net ([10.232.132.56]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0H9rvms002820; Wed, 17 Jan 2018 02:53:58 -0700 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=104.47.34.71; helo=nam01-by2-obe.outbound.protection.outlook.com; envelope-from=udit.kumar@nxp.com; receiver=edk2-devel@lists.01.org Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; From: Udit Kumar To: , , Date: Wed, 17 Jan 2018 03:21:34 +0530 Message-ID: <1516139494-7354-1-git-send-email-udit.kumar@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131606564406560742; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(39380400002)(39860400002)(346002)(376002)(396003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(97736004)(110136005)(54906003)(4326008)(50466002)(106466001)(53936002)(2906002)(356003)(8676002)(68736007)(305945005)(105606002)(508600001)(50226002)(81166006)(77096006)(81156014)(8936002)(2201001)(36756003)(26005)(16586007)(85426001)(316002)(47776003)(5660300001)(6666003)(51416003)(86362001)(8656006)(104016004)(48376002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD029; 1:NfqZVdqmAoE/uZ0ZeKUcvoIfdLrCnn5kqSATHP/SZUSiv/9a/E1oPTZ2SnU4EXybK3LwGME9Rp6V5qg4YmGqqAOERd3fccbPzKv94LFILfF81JATF+9VjxftK2bDP+Um MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7f7e3bb-257d-44ae-07e6-08d55d903c07 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:0yezP1Yxed+LJWm0pAywwuMyTp6YLItUXoaM9/KwnZDq7qo3DVcz1rmpGOsOV5bsjfie51iVHxiD93zAdTgcvWQ2hTmmgWM3Rl+PyaSqKW1+Kw3e0OHDGkm2UCasMZzcHA8wuB1iG9E8nh0XtB1+Cge0/HeNncNFGiqjK2hqWq72sGCs9H2jowf+nVAG8ipxK3l4yrB28kAllt8IUeIPrTV0UBJ+P79mnMCoC3yKbpSRFMFkq66lxXUbOBTkGeuR42TCeKXJrrVFm+byf5Jtnf3Uo08xUDzwfvax+swAShHSG2Rqcv914rQTq/2Mb7ZQilDUuidQSFFWTiAory3p6Oj2V4BVkJAVc1lDVsFr0xE=; 25:Mk0cczPSch06u31HcNKAIPL7ah2rJwmbEjxubK9ZCM3UnlJNFFrKU3q77peJ/Wbd3sAqQVcyW3w+k+iFRLuiOE4xEavBmmhzLKybHQ9bXlwJI63gT2O3ObDAn0jcJdL+wUNFSWcyaeQigAO1IkWKJU6T1uVaCBd5dwEiB8bJPIrmg0PGrMzn6+LuKUAIIfDYX7ZEr2DosZLoL2O/kqNjCrNijGemF1q3LzWrj6lN3oc5hgbnR88DHZkGvXHrumLOYoC75JKMP5Fs7mrNQIP8Odc8zebea0jF14VdfZweWjQLOqp/iHlO6pi4i/VtQuqw7F7/aUssAwbdaAnpg4hYNA== X-MS-TrafficTypeDiagnostic: MWHPR03MB2704: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 31:BhXxeIndPfGWcS2A8/6iM7LhFSAnWZvhAuvb/nI5fCzIQvHP3Rl+p6oV1Cnz4t645iQ9rZWFMrOlp9Q+cerBlnVvM20OaYIq1iN0yunGLXeIFizH0qaDSImHpF9NNQ6u1KSLS9MXpE36pgINX+sYy5Ar+t6+Azqzp5zg9QqNkWq4yXbPBtQtmypd4h/RmsbFjx0Cdl+otucbYyy+M9MxyUyR2+ZnFDkehTfWb7OD/Dk=; 4:tqI0N4vaA8t7KxoAwzf27FJDklb5hg4Ro3I6+uQnQPqxB3N5xB3mFQ7RWdi7RQJZkTUA3srmAk95rZa3kiiMA1GaWM8VEI/8Wn+waBXDOxDT+1Sd460act5GdEiBDXvZ2f6YwW42Zf7R2gUYc/3904+eKnpXc+GFk0lZWnssgyHQVWYHaTUVC2rsvWNSpiG9lzXRDIxwD2NKrT7RkICUfRCy0A0a82WTt9DRRRomJ0DvEmaIyuc5Wc1pS9vh/9X4cqwtcOytfpp6SKTrls23xebaQ/I+YpGRLAo6wrNOkR5RXgioXDzIMrqLX1zEkFz3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231023)(944501161)(6055026)(6096035)(20161123565025)(20161123556025)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(20161123559100)(20161123563025)(201708071742011); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 0555EC8317 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:r8g75fKJ1UYhZlSslkNSmGC+g6GX8yLRy9plmu1Q0?= =?us-ascii?Q?PF+JqOXFePBFZUTpKV91OTNpE/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jybmvhjx27TIPaP60Mwrx57DJ/RzDsJ8KEQQE9uZn8Cg9ULxgDFB30tTGTr63tUkgDhTJ4RZnJbm8T9u SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2018 09:54:00.4688 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e7f7e3bb-257d-44ae-07e6-08d55d903c07 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2704 Subject: [edk2] [ArmPlatformPkg][Patch] reset x11 before use X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: varun.sethi@nxp.com Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This patch reset x11 to zero before using it. x11 is marked as caller saved register, therefore before using it default (reset) value should be assigned. If ArmPlatformPeiBootAction function is using x11 then some of calculation in this routine may go wrong. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Udit Kumar --- ArmPlatformPkg/PrePi/AArch64/ModuleEntryPoint.S | 1 + 1 file changed, 1 insertion(+) diff --git a/ArmPlatformPkg/PrePi/AArch64/ModuleEntryPoint.S b/ArmPlatformP= kg/PrePi/AArch64/ModuleEntryPoint.S index a81709d..d391fc1 100644 --- a/ArmPlatformPkg/PrePi/AArch64/ModuleEntryPoint.S +++ b/ArmPlatformPkg/PrePi/AArch64/ModuleEntryPoint.S @@ -60,6 +60,7 @@ _SetupStack: // Because the 'push' instruction is equivalent to 'stmdb' (decrement be= fore), we need to increment // one to the top of the stack. We check if incrementing one does not ov= erflow (case of DRAM at the // top of the memory space) + mov x11, 0 adds x11, x1, #1 b.cs _SetupOverflowStack =20 --=20 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel