From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id C19BA740032 for ; Fri, 29 Sep 2023 22:01:25 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ehoggu6TXBePFtaEQ4rVYQsa6yVfeYFNEZ7wZCmBqc8=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20140610; t=1696024884; v=1; b=HwGFfqXFqBHliCxRtgjTw0ImAh5/ehtYhirqOSKj9qH2315kZ6t79w2D3TwlbPx6tu12qK4p 8ml/1VrpyyYaR/pc1rL4NIBlSfw4uwwStI6pd6UATcrSvuDgMEFcd96pKuyx8nG6BF7vS3eUmPx XhIlo+PRp0thPe/aK08meqtE= X-Received: by 127.0.0.2 with SMTP id xyKvYY7687511x2L29eTPGgL; Fri, 29 Sep 2023 15:01:24 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.30423.1696024883426788430 for ; Fri, 29 Sep 2023 15:01:24 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="381268622" X-IronPort-AV: E=Sophos;i="6.03,188,1694761200"; d="scan'208,217";a="381268622" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 15:01:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="815726626" X-IronPort-AV: E=Sophos;i="6.03,188,1694761200"; d="scan'208,217";a="815726626" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Sep 2023 15:01:02 -0700 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Fri, 29 Sep 2023 15:01:02 -0700 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Fri, 29 Sep 2023 15:01:01 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Fri, 29 Sep 2023 15:01:01 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Fri, 29 Sep 2023 15:01:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K3AQ1dV3GxcL1f09oshfilYq1FMLFnKCLBM7f7fxY9vp1VtFLo8w4aPxpCxBAl08JJCu0o0NXrFVWn7xlbMZnee3yTL0bnykqaxpEcTyOLbLpssUT3/1EX5dggpTKnNx43cb8IKpzWlHt0PCx/bqmyc2F7mAgX3/ehDO7yjnwR7GzgitXoEhAqbYlfchV2CMlSdOoxl8Us+LmB5cyzs2DjH+sAtbcosLC+DFm0BPAnRp7NsAvaea4mHvyDUNMfAsS2tVaI+ppEtXKx0kkNwd2cfZUPjVKTTB+gQPJswQI1uXSl2uunVvUh6UsoEvrX5Sdskjip4BIF3nii4/x6IEvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nn5MA+WlpCztt146Sp/G6YmN3W/vccO4FlKjJqfgQPg=; b=ACOIRh10a5MsGvJFJvFwbeUrpcr9BbA1Q7gMFOEd8z/PMr5dM0K5zYk/+KwnsdkqTCxJ6H+Y2u/a5twv77fWeSWqFuVTempGEd/G9x0Fykt2Knx3vsTh/P2o+a5lOzr1RPqvL67rctBdDhzr7S6fo0/TyFcwInTCoaR+cu4hEAI715FfZYmo2FEaXVO27oVuYunQSa95UZ4YWFtYft8YwSqTHKe9oqV6y+wR+4JEtcagmmUWA2smwtyV1aSfGEp+YL3zW7HXDBeQOpen1bmp41bctGcKf2X1vj7BpvTLfhiscROIoEP5YYjwbfOt8u25WTRNh649vwoVb31C+r8QRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com (2603:10b6:510:22b::7) by SA3PR11MB7654.namprd11.prod.outlook.com (2603:10b6:806:305::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.22; Fri, 29 Sep 2023 22:00:59 +0000 X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::2659:597c:90a6:1fc0]) by PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::2659:597c:90a6:1fc0%7]) with mapi id 15.20.6838.024; Fri, 29 Sep 2023 22:00:59 +0000 From: "Andrei Warkentin" To: Leif Lindholm , "devel@edk2.groups.io" CC: =?gb2312?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkqKY=?= , "Ard Biesheuvel" , Sami Mujawar Subject: Re: [edk2-devel] [PATCH v2 4/5] MdePkg/BaseLib: correct register sizes in AArch64 SetJump/LongJump Thread-Topic: [PATCH v2 4/5] MdePkg/BaseLib: correct register sizes in AArch64 SetJump/LongJump Thread-Index: AQHZ8J0k7PEj3xKDJEuFd9/nWezb5bAyX1Y0 Date: Fri, 29 Sep 2023 22:00:59 +0000 Message-ID: References: <20230926171523.368706-1-quic_llindhol@quicinc.com> <20230926171523.368706-5-quic_llindhol@quicinc.com> In-Reply-To: <20230926171523.368706-5-quic_llindhol@quicinc.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH8PR11MB6856:EE_|SA3PR11MB7654:EE_ x-ms-office365-filtering-correlation-id: bbb29606-b2a5-469e-163f-08dbc137906d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: qvbC9G7f3u1K+7inTRN/Of28+0EaFPLAF0NffkugCBJURSwolMzSmwf/RJA0ceySKktPuaAbNIZNjh9xmCCDv6bKa15QXGJebk9/x3RYNvhzYZgU+YdRaALuEChNJkbh2cr/b3DhY4vhRFdmLPjFa16V79a6ofvJl/FGe8OloCx5/OuvCbG7IlWNIhKR+uzGJNsoDk9GE5ZYacH9P6IM8OptkmNb0M3l+NSk7Jw0Vsb/CqhUQY9izm/qiGZbrPE7pCMNf3gHmFBAb4+W1w0Eycg/6Mx53uStM00U5og1DOCGuKF4eK4Cp0AFeCV+rdeJd2PiE+JZnl2eorhvxqTmeXvT3Upi29Y4LJa0/RpsL6ifPNES+2jdXFJgBTEUlOGObkpMxBParPtJHYDE2IjMgS3VadY0jqjdkr7txi8bBVzpk3bkF5pIbEMM8sv5NuUF1qXkoad2B1VqPmOn1ztqz6N9EojVhUr0/TisCtzdVIw712TTP7d/LjaSfxqJ7c3dWyHSc2UCXCiiavjuobS/ommsFd5deP2G7UnEQWSvU0I+oHE5U+iEK+bETrpLhk2G7dDlvVqqnQ0S9Qm9jIlUdA2ljijj0Krm4U75H0TsXz9haS1iyggsEVraIsf+sXHr x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?gb2312?B?bU8wK2dId3ZEUmNEWnlyVWxNT1ZwZld0SVB6NmJLdkhTdUJFZ2ZaMDhxNWhQ?= =?gb2312?B?Y1hvWmtqVjByVHU5aVVLRW93RGxTQkR3azd1OWZsOCtrbVdKOTNHQnJhSjAy?= =?gb2312?B?SHQwODJPVFltY01HV1FCMGdkdVhYWmppUGgxWE4razQvZFl4Uzd0SHgxTmZz?= =?gb2312?B?WllPMTRjT0ZJNEs0TzUzM0tvWnBGTk1JNHcxQml3bTEwdmlqUXdhZWpxcTc5?= =?gb2312?B?ZUF3ZStIaGNHcC9LWkMvUWtKVGZ1bHd5Rlhrai9WL3IxMDZ4VWovcWtuQ2N3?= =?gb2312?B?bWo4MUdGL3VHWUQ3QUJKWXlZNDM3V3crVENxNGJqSmdvZWFZUUczdFpWeFdQ?= =?gb2312?B?bzkrbUFmSWJOalloZTBaMTJydldQSUhkcjl1ZXRsanVlNHpPbTZiR0NER20x?= =?gb2312?B?a3BjK3NsQXJSLzRCSThaZHYybi8zTmMwZDluRlovY1U5aEMrbTluRmZLR3VO?= =?gb2312?B?ZFdGRnZ4dXozT0IwYnZuWEpqV2F4emowRU9TYVFpdnhyVVJHaVM0T2dJZWNp?= =?gb2312?B?eUxvdFd1ZUhSVnY4dFdxaS90UXRPOHIwakl1cWMwelVYU0VjaEdkTnpzY2Nz?= =?gb2312?B?YUsxb1JzQW5adnQ5M0IwUFBwakFpeGg3dzYxdGxIcFg5RVE4OElZeUt1Sys0?= =?gb2312?B?VlRObjlaOTZJTVljeFVtTmFmMUpNMHFBR1hLTUsxMVFCaHI0Uk9OdGZVdG40?= =?gb2312?B?SDJTajJyajA0YTl4WkJtNWZ6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UUJnY29LemZZbldRUUZNRTZETnRKZHFCbmIzNGtuZ1NodWlYOEs3NVVsTFlF?= =?gb2312?B?aitkWERRc0d0dGdBYlRnelE4RFM1MjZRZkcrSUxVamk1V2w1TlFiNUI1dFkr?= =?gb2312?B?QnJyVUZoYTVyK1Q0QWpzT3dTbi9IZmN4S3ZmTXpMdndlK3NUMGRRVFFJN1hq?= =?gb2312?B?UmNhaGtnU3NBTFB5bmREV2hhUXN1clhQMzJsZXJkdXovL1dXalJjL0FDSDgx?= =?gb2312?B?akN6QmtFWkZkVUErSTF2RThsbDRTY3pyZG9hRjVDUlkvZndMdEs0c2JMa2p6?= =?gb2312?B?ZGNCbm42MlFZczNpcHhCMXRRall0OFBLQXJQWWZ6aUY1MEZsKzdPK1pIcExa?= =?gb2312?B?U0lVZ1lCMmVNKy9FcG4yaldaOGJsVFNHR29LanAxYkFoeGlTZDJxbE01TTRD?= =?gb2312?B?ellTYjlzVi9SeGJEMDR4aXpkblMxNGpkeWlMS1UwdzRqaGhSdmZxWkk2aWVs?= =?gb2312?B?djZDRHN6K3FkZXkrQW9xTVJQbGpNb25nVWkrTlBhSzhLdHhyS2tna01wanNV?= =?gb2312?B?OXNnbk0yZnBYZnVPUmROS3UwL0tIcndpbDRGTG43dXJWemRDaDJaamJ4b0lY?= =?gb2312?Q?qLhhS8/5zXGOqpmfTFK3fpO7xWheKUdOSZ2F9WAd3M=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB6856.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bbb29606-b2a5-469e-163f-08dbc137906d X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Sep 2023 22:00:59.3265 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aeRKdNjnlzwnxjEroZraSXTUj3KcTl1uIP0fo9ZoQnpjJrGqrUR5UKj6D52WDodKc0JEsaMhXt3af5f7P7DYAtwXopvMGClxNMEhvfv3XAU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB7654 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrei.warkentin@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 3G8OSjVtvogW7EQ9GoopQUaix7686176AA= Content-Language: ru-RU Content-Type: multipart/alternative; boundary="_000_PH8PR11MB68567814E84B36DC4EE5F48583C0APH8PR11MB6856namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=HwGFfqXF; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") --_000_PH8PR11MB68567814E84B36DC4EE5F48583C0APH8PR11MB6856namp_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 UmV2aWV3ZWQtYnk6IEFuZHJlaSBXYXJrZW50aW4gPGFuZHJlaS53YXJrZW50aW5AaW50ZWwuY29t Pg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCqewp+Q6IExlaWYgTGluZGhvbG0g PHF1aWNfbGxpbmRob2xAcXVpY2luYy5jb20+DQqnsKfkp+Gn4qfRp9On3afWp9+n4Dogp9On5Kfg p+Kn36fap9wsIKfjp9an36fkp/Gn0qfip/EgMjYsIDIwMjMgMTI6MTYgUE0NCqesp+Cn3qflOiBk ZXZlbEBlZGsyLm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ICAgIG1vdiAgICAgdzAsIHcxDQorICAgICAgICBtb3YgICAgIHgwLCB4MQ0KIGV4aXQN CiAgICAgICAgIC8vIHVzZSBiciBub3QgcmV0LCBhcyByZXQgaXMgZ3VhcmFudGVlZCB0byBtaXNw cmVkaWN0DQogICAgICAgICBiciAgICAgIHgzMA0KLS0NCjIuMzAuMg0KDQoNCgotPS09LT0tPS09 LT0tPS09LT0tPS09LQpHcm91cHMuaW8gTGlua3M6IFlvdSByZWNlaXZlIGFsbCBtZXNzYWdlcyBz ZW50IHRvIHRoaXMgZ3JvdXAuClZpZXcvUmVwbHkgT25saW5lICgjMTA5MjI2KTogaHR0cHM6Ly9l ZGsyLmdyb3Vwcy5pby9nL2RldmVsL21lc3NhZ2UvMTA5MjI2Ck11dGUgVGhpcyBUb3BpYzogaHR0 cHM6Ly9ncm91cHMuaW8vbXQvMTAxNjAwODA4Lzc2ODYxNzYKR3JvdXAgT3duZXI6IGRldmVsK293 bmVyQGVkazIuZ3JvdXBzLmlvClVuc3Vic2NyaWJlOiBodHRwczovL2VkazIuZ3JvdXBzLmlvL2cv ZGV2ZWwvdW5zdWIgW3JlYmVjY2FAb3BlbmZ3LmlvXQotPS09LT0tPS09LT0tPS09LT0tPS09LQoK DQo= --_000_PH8PR11MB68567814E84B36DC4EE5F48583C0APH8PR11MB6856namp_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com>

=A7=B0=A7=E4: Leif Lindholm <quic_llindhol@quicinc.com>
=A7=B0=A7=E4=A7=E1=A7=E2=A7=D1=A7=D3=A7=DD=A7=D6=A7=DF=A7=E0: =A7=D3= =A7=E4=A7=E0=A7=E2=A7=DF=A7=DA=A7=DC, =A7=E3=A7=D6=A7=DF=A7=E4=A7=F1=A7=D2= =A7=E2=A7=F1 26, 2023 12:16 PM
=A7=AC=A7=E0=A7=DE=A7=E5: devel@edk2.groups.io <devel@edk2.groups= .io>
=A7=AC=A7=E0=A7=E1=A7=DA=A7=F1: Philippe Mathieu-Daud=A8=A6 <phil= md@linaro.org>; Warkentin, Andrei <andrei.warkentin@intel.com>; Ar= d Biesheuvel <ardb+tianocore@kernel.org>; Sami Mujawar <sami.mujaw= ar@arm.com>
=A7=B4=A7=D6=A7=DE=A7=D1: [PATCH v2 4/5] MdePkg/BaseLib: correct reg= ister sizes in AArch64 SetJump/LongJump
 
Both in SetJump and in InternalLongJump, 32-bit w = register views were
used for the UINTN return value. In SetJump, this did not cause errors;
it was only counterintuitive. But in InternalLongJump, it meant the top
32 bits of Value were stripped off.

Change all of these to use the 64-bit x register views.

Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reanimated-by: Andrei Warkentin <andrei.warkentin@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
---
 MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S   | 8 ++++= ----
 MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.asm | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S b/MdePkg/Libr= ary/BaseLib/AArch64/SetJumpLongJump.S
index de79ad3a0a3e..3e58119b25d2 100644
--- a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
+++ b/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.S
@@ -61,7 +61,7 @@ ASM_PFX(SetJump):
         FPR_LAYOUT
 #undef REG_PAIR
 #undef REG_ONE
-        mov     w0,= #0
+        mov     x0,= #0
         ret
 
 #/**
@@ -91,9 +91,9 @@ ASM_PFX(InternalLongJump):
 #undef REG_PAIR
 #undef REG_ONE
         mov    = ; sp, x16
-        cmp     w1,= #0
-        mov     w0,= #1
-        csel    w0, w1, = w0, ne
+        cmp     x1,= #0
+        mov     x0,= #1
+        csel    x0, x1, = x0, ne
         ret
 
 ASM_FUNCTION_REMOVE_IF_UNREFERENCED
diff --git a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.asm b/MdePkg/Li= brary/BaseLib/AArch64/SetJumpLongJump.asm
index c2774eece311..6ec8f35f2c9f 100644
--- a/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.asm
+++ b/MdePkg/Library/BaseLib/AArch64/SetJumpLongJump.asm
@@ -59,7 +59,7 @@ SetJump
         FPR_LAYOUT
 #undef REG_PAIR
 #undef REG_ONE
-        mov     w0,= #0
+        mov     x0,= #0
         ret
 
 ;/**
@@ -88,10 +88,10 @@ InternalLongJump
 #undef REG_PAIR
 #undef REG_ONE
         mov    = ; sp, x16
-        cmp     w1,= #0
-        mov     w0,= #1
+        cmp     x1,= #0
+        mov     x0,= #1
         beq    = ; exit
-        mov     w0,= w1
+        mov     x0,= x1
 exit
         // use br not ret, as ret = is guaranteed to mispredict
         br    =   x30
--
2.30.2

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#109226) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_PH8PR11MB68567814E84B36DC4EE5F48583C0APH8PR11MB6856namp_--