From nobody Wed Jan 15 06:03:08 2025 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+105174+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 1684847084656628.3293929233897; Tue, 23 May 2023 06:04:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id qkx8YY1788612x2Vliy7gJFi; Tue, 23 May 2023 06:04:44 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.75]) by mx.groups.io with SMTP id smtpd.web10.21862.1684847083209655536 for ; Tue, 23 May 2023 06:04:43 -0700 X-Received: from DB6P193CA0012.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::22) by PAXPR08MB7527.eurprd08.prod.outlook.com (2603:10a6:102:24d::16) 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:38 +0000 X-Received: from DBAEUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:29:cafe::4d) by DB6P193CA0012.outlook.office365.com (2603:10a6:6:29::22) 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:38 +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+105174+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 DBAEUR03FT052.mail.protection.outlook.com (100.127.142.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15 via Frontend Transport; Tue, 23 May 2023 13:04:38 +0000 X-Received: ("Tessian outbound 945aec65ec65:v136"); Tue, 23 May 2023 13:04:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1c736b56059f48f7 X-CR-MTA-TID: 64aa7808 X-Received: from d2fd7313fdbf.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1324198C-5F49-4D53-B88E-D7C87E004EAD.1; Tue, 23 May 2023 13:04:32 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d2fd7313fdbf.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 23 May 2023 13:04:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TpjJGOk42UgUeUg73EVrd1Ugo/XlBzW0SY1SqqQVoiV9/UvLBUBGX9WGtqyTJ5+A+FNDSVnI7EA5YI7Ac29YWN453w3lz8IJIU/6sq2nL5BX4UMYTbBJ4GVxgb/ghLMwEf/ECVs3ik0XCzBzMio1VDIFPngUNd1Jbyi1iaOjz/xljPkEh6kfD/uPDYHwriHbbdBRO+X8mWcKWcYuHgSKvd/dzpTf7sJ1AmoDvtPC8xOlHlUEvQVHsSMQYGAlJsnvr7McVtwJTJlEfbJjn2K00T55VlTxbRRBHQ14tKXLKuKdnvbSFNzFXN7d87RPYlFcLpIZPBk7eviF+6ULmB+xnA== 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=r6XkahbVh8oH2vZ3XfR4memkfJgyjWBktXupB5davIk=; b=VKeQHPwBxppZU37pKB0Zh8SfbAq7ETDaWlVp7mj8i4VLW7fpcMaRqxh0wYe76FmX47V/tmI/m8NkgpSYRGQH7nJIrhWkeG9aZP39wKX4PwwoAwJPjsAfPc3YejBhv85U8+Y7y97zLX6O5CuYz8rtqwyd/y9c/U0miY4NVt9nHAqJDZkfiQFPC/NcXIrDy9PGWYEXtBs196vcvD0gm4UWCiriih9fDG6dEYj1l3/S/tCmTC1pnjsiAL8Ll5GdrjL5fyVbQBk284yf0BIeajxL1cmR+HJvTVBBzcyf3jkdUu1it56VnS2D5+kGtyi1rANCERc6VCd8+GY08TgspN2YVA== 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 AS8P251CA0025.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::20) by AM0PR08MB5378.eurprd08.prod.outlook.com (2603:10a6:208:18a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29; Tue, 23 May 2023 13:04:30 +0000 X-Received: from AM7EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::c1) by AS8P251CA0025.outlook.office365.com (2603:10a6:20b:2f2::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:30 +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 AM7EUR03FT033.mail.protection.outlook.com (100.127.140.129) 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:30 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) 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:25 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [edk2-devel] [PATCH v1 06/12] ArmPkg: Make variables used for GicInterrupt UINTN Date: Tue, 23 May 2023 14:04:15 +0100 Message-ID: <20230523130421.10804-7-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: AM7EUR03FT033:EE_|AM0PR08MB5378:EE_|DBAEUR03FT052:EE_|PAXPR08MB7527:EE_ X-MS-Office365-Filtering-Correlation-Id: cc653cfd-72a9-4188-b090-08db5b8e43d8 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: 5+WLpNY7R+FzfRzldvoEK7x4oQhslCIs+hZ7c8VxiW+xLnyIckVpVSCQa/uUQx0jqBe/tSwDySGSdz6b9m7p60tzCjTiO1pmIspl0m8wb4ouonX9KNCT1wgOzpip1off6bpwhP6rtlrOdFx+H68l79d1PEG0SRly9VJPpiX+XTMwczPyDNwYohhL1Qahbx/ZeZ+tk6TW+xtppzO6tSmHZBlPvDABgOWbLp+1n7GgkkJm3IMREQOnmtWOcf09acxRViOhsPRmx5CYfHbV9R3SlljE3/f1xKEChiZs/FekrAnrWkPXQFfHNtmA/aKvAzQBRibxJkPsuN9cojgImnZp+MaCrd7Y9Fzk5mUiMWEid6GroCMEJMhmw5Ql8sBHCaQ3JoIkKt+PJkEhUelaOo4qxGRQFC1/0291LXyMDuaIEpDiGoUsB97jQzGPMZX+XR5EdtSKAbEhtrGlpcvZwtORxoNCSP7wNHoI9kSu1LrxC1+enYFtSnvWaMC8oMNf1v8DMESHXVofASzplEQRZTfPjXFkr/CfmJ/rSu4jVrD5VUqeNS2CF++jl/I2hHE4DT2Xnjn91aoLFvO2gLJQ/ft+nCqJLz+6rRWqgIqFX7XSbE51G1SPHc7DqHw8O5sOLHcTbECW4su+xJFK4QNf7l/MGj9lkpQqkHGwTmaSHQRswkuFuFfvoZZqhfOI3ccStxYwWuSosAqyKViPi3kX7EHmy/RLhLjL+rYDbn6zssETkV3890knMCm416Ry3RD6oYabu+RmAMLbg+23Iekb1Ma/iA== 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)(376002)(396003)(136003)(39860400002)(346002)(451199021)(46966006)(40470700004)(36840700001)(82310400005)(478600001)(70586007)(70206006)(6916009)(4326008)(7696005)(41300700001)(6666004)(316002)(54906003)(5660300002)(8936002)(8676002)(19627235002)(86362001)(44832011)(81166007)(82740400003)(356005)(1076003)(26005)(40460700003)(186003)(336012)(426003)(83380400001)(40480700001)(2906002)(2616005)(36756003)(36860700001)(47076005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5378 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e1ee4637-20b1-4c48-8004-08db5b8e3efc X-Microsoft-Antispam-Message-Info: W+yg8cH53pwny6C+pzpM1fJ99Aao/3rc/vusj/6pnx2n++kboyej/L/56ACTPccA4lbh0B1NwWWLcUpwmghbubzVDCMadsGNM51SUgCnWY+WCxWw9Q3lTSG3AhPb+C8z0/gCNU6XLaCgTwkJhx+rhie8kNwx5z/O8Ha3AUAC9tll8jVLOPA+sq9nFxwIxhkUQrvdCwperhFMh++j1i3T9FLgk8wYyUnW0eAF2WFPCyoi47gAqQIwAZP8QGHzWDvHyQiwM8x75IkhwMvH2xvQPgaoIBYB8mluPgYFVYaDyVDOI/Q8F9mtK3mrlC5s1ffj2ROrHsU1nwajhlEjj9NsqVnQvQTmv28joY+l7gD+mXybelL/6A1gff9Xmlq0JgIoZpSYrGqH4BaqvtZutlgAdbR/wf2mVPevsDkuWbjbPnBvbaSjtzy8A6vg50G3NxEF7638QJuWT3+sYB4FModmccnaebsYzkyUnslnQxKPEHt1pyc80kRaiDbiD1ZysbLYy012oCQIynWVKmAjzmueOcrHOTO56KoO/zCsJ08tZi/ueX0B/E+DOaWQK/wB2ddiCmgZ3JhOlbwtLxvTqC+/m+F0090klkOkMP2y4yBpFJRq2sgRgq+08HiUnuLdW9EHLDHWWzPu+sL1lEMoRP6qapoI4JhM0a0C3tNek+NskhxUC4DgUuMFY81FM0t/WahuUtMKkz/TT6SNJcxgpmQQvw0vH0kARe0hyVH4OznyDa4KrWQglzotZFTfWHpAo2ga X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 13:04:38.4659 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc653cfd-72a9-4188-b090-08db5b8e43d8 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: DBAEUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7527 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: iTSnkmdJf1mfACXhlno3TBw0x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684847084; bh=nc5CrE3LM8uESGU51Itg9phgyTqSwsKOpBFSVKS14dc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Au/AtpnPVtNG+xGeYxq3po7VksDfTDlc7yoilnLreFM8E137ktoeLC0nKYdYNYMjNNT MaAp4qEWjrA4+rX26zHtUDieLKIEa6LYICmzoxZnI3cOUHp8NhNIwkjjCLyuvHsNEZHFC gIBYYqkmFub3DaU0q/kFgde0Br269dj3/+A= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684847085864100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Although the maximum interrupt ID on GicV2 is 10bit and for GicV3/4 is 24bit, and that the IAR and EOIR registers of the Gic CPU interface are 32 bit; the typedef HARDWARE_INTERRUPT_SOURCE is defined as UINTN in EmbeddedPkg\Include\Protocol\HardwareInterrupt.h Therefore, use UINTN for Gic Interrupt variables and use appropriate typecasts wherever needed. Signed-off-by: Sami Mujawar --- ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c b/ArmPkg/Drivers/Arm= Gic/GicV2/ArmGicV2Dxe.c index b952c3ae31c060ecbb43c0800d34e57664a8262a..fb40f56ff9231f3a28c3d90939b= fd25ac3432f89 100644 --- a/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c +++ b/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c @@ -162,7 +162,7 @@ GicV2IrqInterruptHandler ( IN EFI_SYSTEM_CONTEXT SystemContext ) { - UINT32 GicInterrupt; + UINTN GicInterrupt; HARDWARE_INTERRUPT_HANDLER InterruptHandler; =20 GicInterrupt =3D ArmGicV2AcknowledgeInterrupt (mGicInterruptInterfaceBas= e); @@ -349,8 +349,8 @@ GicV2ExitBootServicesEvent ( IN VOID *Context ) { - UINTN Index; - UINT32 GicInterrupt; + UINTN Index; + UINTN GicInterrupt; =20 // Disable all the interrupts for (Index =3D 0; Index < mGicNumInterrupts; Index++) { --=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 (#105174): https://edk2.groups.io/g/devel/message/105174 Mute This Topic: https://groups.io/mt/99086448/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-