From nobody Wed Oct 30 22:13:52 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+105177+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1684847092482876.6838781455426; Tue, 23 May 2023 06:04:52 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Q4DGYY1788612xUkFZRzalut; Tue, 23 May 2023 06:04:52 -0700 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.42]) by mx.groups.io with SMTP id smtpd.web10.21864.1684847086087904942 for ; Tue, 23 May 2023 06:04:46 -0700 X-Received: from DUZPR01CA0340.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b8::13) by DBBPR08MB6123.eurprd08.prod.outlook.com (2603:10a6:10:20a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 13:04:42 +0000 X-Received: from DBAEUR03FT048.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4b8:cafe::89) by DUZPR01CA0340.outlook.office365.com (2603:10a6:10:4b8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29 via Frontend Transport; Tue, 23 May 2023 13:04:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+105177+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT048.mail.protection.outlook.com (100.127.142.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.14 via Frontend Transport; Tue, 23 May 2023 13:04:42 +0000 X-Received: ("Tessian outbound 8b05220b4215:v136"); Tue, 23 May 2023 13:04:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: af0d9369c49d084b X-CR-MTA-TID: 64aa7808 X-Received: from f2bc052b20fa.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C2865199-906A-4BF8-A47D-28583742028F.1; Tue, 23 May 2023 13:04:34 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f2bc052b20fa.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 23 May 2023 13:04:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nn4pWKPPPwzImNf8twsLeUyE+xTSBM8WL7LKGWEDAqI4KNqNsH8t5mxjRorIoywHtf9cvTg/w0Q7Ee4yRGKwxI5loFodKwbL3PdApyTJfdIWRaVIUiQX0lDBka/udLstfks9x3pd5xz32NduWa9QqB7TxqjmfBBkECufUMleQ1/rEccLvuk1sc5ji5VSK4mlFCbX8uga4tuRvLgR/3nS/i6AZR/2gNMtvPK1xF9TWHMUpCAtt9X8ZofIM1sLPnVkuFtR4ranCV5A3aHBM/eePQfWgeUNlZB688jH0Eqw02fvWI3KIczKziWd8mdhmDVsvK0kZvR9ydwIEH4iZtvAsQ== 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=dKo33xW2LUOCXUF/oXnu8gALFsfh2T7x0t5+8aEAn6s=; b=jY/KorGJtnT0H3tkMUOm8AJWqvptSS5SnXz/tCwyqXYN9X5DhGGUnOC9oiTU92uo6Zuqsr7cR5iYQb2ugbwUPx5UMA1zD5I6CgTZHM36HJO/Aq1o89aHrQXOYDnKI1wOvd2SgdYzVL7hewKHRl6L+CgxPgsnQHhN37HsS429nRJ2uJUmSURRxd/z8Xpg8SP0nUqyBG2Cj5UkyrVJ0ahMsKwbbVfFevUurIOEsslxAPKypn3ww2y00SdZVxr/OWrrnvPXXW1uEJG5QWMiHae10u6zRxr3zDEXSC1+lG70COPgFXgCpP/8J3Mop00QyLPKXZ4wGBDt5O9SdaSfmkmT1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from AM6PR10CA0007.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::20) by AS8PR08MB9480.eurprd08.prod.outlook.com (2603:10a6:20b:61f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 13:04:28 +0000 X-Received: from AM7EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:89:cafe::55) by AM6PR10CA0007.outlook.office365.com (2603:10a6:209:89::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29 via Frontend Transport; Tue, 23 May 2023 13:04:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C X-Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT059.mail.protection.outlook.com (100.127.140.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6433.14 via Frontend Transport; Tue, 23 May 2023 13:04:28 +0000 X-Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 23 May 2023 13:04:27 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 23 May 2023 13:04:26 +0000 X-Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Tue, 23 May 2023 13:04:26 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [edk2-devel] [PATCH v1 07/12] ArmPkg: Fix return value for ArmGicV2AcknowledgeInterrupt Date: Tue, 23 May 2023 14:04:16 +0100 Message-ID: <20230523130421.10804-8-sami.mujawar@arm.com> In-Reply-To: <20230523130421.10804-1-sami.mujawar@arm.com> References: <20230523130421.10804-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT059:EE_|AS8PR08MB9480:EE_|DBAEUR03FT048:EE_|DBBPR08MB6123:EE_ X-MS-Office365-Filtering-Correlation-Id: a6d9c0a1-1061-443b-65ce-08db5b8e4612 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: GPCFtrBYAl6Prv3t4xVg4Oq9vq8M2PBTS+cEen0NgtXDq4awHXKjs33Gm+opoo6tlUzlXyvxNGyjF3uBArgioIVVzxSjllyK7SfP/cdV612UjzbgBfTT4ozwS7Mov1UsH5TLT+BURuAi2ZhEf91U8VGC5yOiABRCs6ewfW32yQfI6ZnkuJhmCqLoQWUJBJkuhsaerTEWvytvvro4tBLIiJEBw2Qn13emGqkd5poI5fS5HACPm0uOgpoH/gs0g4fih/JBHli22UZw4dui2KH5o5XrjetKqyJxN3gA6jWE5IsiPYPnEuoxulKqoJ7O6buG8HFtq2ERlqOGTjqsTZnae7wsgW+BHX7ZJASVgxpYtjIQARsMQnkXsJ5/GB7Zsf7KNgdCkJL90gbaj0YrdWy2TnJ5oLkFaXY149g7AleJHutWygSko2pjREXq8eLAO42DzcaPAhTjDAK2mCqy1XCAZjIGihdGf2gtxKko2bL6txnCw3uTc1KjC9mKW2YlyPTyebVBzY7AHMcRLOEBgR2G51eyBQGiZWQekcFBVNcvsyK6/xbBOKOOrQvqxnMoItEoD40sdhCAILzJZvZZklxkA2ijCRQJrc9LDCponJeTez6+Bu0hXUKZQ7t2abULpDz/W2CNfNlOM8Tcm5yoZ8pdxZR3TyKDFkxDc70HVe9krXS+VGOT6q0At5XdBFV69Ggy9P9JX0OlKU6gWn5SWUl1rPxDvTbW1om3VjcMFpwJRi7qC5+pt7kknwYsbSr5zNtXYdwFqm4rNc6VC8WscWVdNA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(136003)(396003)(376002)(39860400002)(346002)(451199021)(36840700001)(46966006)(40470700004)(54906003)(82310400005)(41300700001)(7696005)(478600001)(19627235002)(316002)(4326008)(70586007)(6916009)(6666004)(70206006)(86362001)(5660300002)(8936002)(8676002)(44832011)(2906002)(1076003)(26005)(356005)(81166007)(82740400003)(186003)(4744005)(40460700003)(426003)(336012)(83380400001)(40480700001)(2616005)(36756003)(36860700001)(47076005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9480 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 373e3c79-cd13-4d8f-bf26-08db5b8e3db3 X-Microsoft-Antispam-Message-Info: RxoqpuWvDrSJpgd2/Bg/twj/ZJ/inW3jbUhfrgHicV7wVM7b5xJDtzpANUh/YB8bwuLU1HIEJPHnonRuaHOjq1emzMVHBO9GbNf3rZK4o+mq8UPzYO/h88AhxKToLCTeFiRBa9ziBACtSKB6T52YrfvpgaoaCcC+qpqw3rK4oFl66j62dIdcJ4ONVZmmdHTe7vdIVrYdIYW93kaOTT2+ewbdliH8n8mNnpglg+xLCWZMZd0PA1zBvE57kJbO+A4Odgd6ifnLNrAECu+v8AAuxJc0zcVQoslhdqnH1P8YHRjEsmX58FryAszAdFwB1IQhTg6H+c31G3kdZIiowbytO9ZJ7KXHpAzfSJsevIo8TGhGfakpP4ohLzhlqmdNDm8shqETDaa/zDbnLOarpLgi48eNgL/ghI+MYqhnu2sF4wFLbkbQXJYolPYfhLXwzvezYZDFJfNU0tQIneAhlgM9/mHhETuPYQZpxzO5chQU93ircZqKWdNbc0XfmtazYUoJKPu/G7a33NLqGnUCThCKfa4bZPwyTXEBKNv9bPbeztSFICSFDSvERLNkZhHR7rxYcnDaQxwx3h2IEnWEVPXOe6E5iNMwuPYH0uU28gJRSAfFnWlg37ygWYbX4wMFcYe1193j9VnpKswsxYvzNJMutmjf3MwJjLI4/bMmOOtX5pWtTR+Yq4VwFLOSj4ukBQ1kE0I3crOsJ3iEbbsb7xcnjpEHP3EgkOgyplWenAdG9kLycNcsDR8B2hFLDsx4nWce X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 13:04:42.1995 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6d9c0a1-1061-443b-65ce-08db5b8e4612 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT048.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6123 Precedence: Bulk List-Unsubscribe: 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,sami.mujawar@arm.com X-Gm-Message-State: 5oOhGAWdXiRanuTSd5blnwwMx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684847092; bh=QO5cQxrl6+x/bWJbRIziBMurXBzlQ8hIve5MUJnx1/Y=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=guFAjc65rlaAz1dnQhi1ZkTWK3Jayz8dh1xhG2LL3F4zFbL+UB9TPHb1Js48ddFy/D3 9aiMHV31QVz53+vlhKI6mqXS3tsDlZPeljyoG//grn/Jv5lOrQUqaKSZNt/VkMZfrHv/o k8wxDAtI3I1gg0gy6DV8p+c0SUT4Fbxvnpc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684847093805100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The IAR register of the Gic CPU interface is 32 bit, while the value returned by ArmGicV2AcknowledgeInterrupt() is UINTN. Therefore, typecast the return value to UINTN before returning. Signed-off-by: Sami Mujawar --- ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Lib.c b/ArmPkg/Drivers/Arm= Gic/GicV2/ArmGicV2Lib.c index f403bec367b5254c248e620e56471904e520f9f2..80115b243afabd5e4faad88089a= f738b19ce4cd1 100644 --- a/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Lib.c +++ b/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Lib.c @@ -16,7 +16,7 @@ ArmGicV2AcknowledgeInterrupt ( ) { // Read the Interrupt Acknowledge Register - return MmioRead32 (GicInterruptInterfaceBase + ARM_GIC_ICCIAR); + return (UINTN)MmioRead32 (GicInterruptInterfaceBase + ARM_GIC_ICCIAR); } =20 VOID --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#105177): https://edk2.groups.io/g/devel/message/105177 Mute This Topic: https://groups.io/mt/99086456/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-