From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=XuB4azV+; spf=pass (domain: arm.com, ip: 40.107.8.75, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r6XkahbVh8oH2vZ3XfR4memkfJgyjWBktXupB5davIk=; b=XuB4azV+yjkeCG4MGSiINv8MFbdwe6tKoPrKqEQGYDctwbYNA2aa36lBGEyAHRgrGOlRAOyZ8UgKzwTvp8XyYqfBbhQ2ps0oYclX+rhb07K1rpk+xmIOufSD+Hlzqpe1RmpGdU91zk6AWM+2Zbta1trsszOvDEtucHRm2Fxq6ww= 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 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 (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 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 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 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 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r6XkahbVh8oH2vZ3XfR4memkfJgyjWBktXupB5davIk=; b=XuB4azV+yjkeCG4MGSiINv8MFbdwe6tKoPrKqEQGYDctwbYNA2aa36lBGEyAHRgrGOlRAOyZ8UgKzwTvp8XyYqfBbhQ2ps0oYclX+rhb07K1rpk+xmIOufSD+Hlzqpe1RmpGdU91zk6AWM+2Zbta1trsszOvDEtucHRm2Fxq6ww= 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 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 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 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 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: [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> X-Mailer: git-send-email 2.16.2.windows.1 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 Return-Path: Sami.Mujawar@arm.com 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: BCL:0; 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-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(376002)(346002)(451199021)(40470700004)(36840700001)(46966006)(82310400005)(70586007)(70206006)(6916009)(478600001)(41300700001)(7696005)(6666004)(54906003)(316002)(19627235002)(4326008)(86362001)(8936002)(8676002)(5660300002)(44832011)(26005)(81166007)(186003)(1076003)(82740400003)(40460700003)(426003)(83380400001)(2906002)(40480700001)(336012)(2616005)(36756003)(36860700001)(47076005);DIR:OUT;SFP:1101; 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 Content-Type: text/plain 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/ArmGic/GicV2/ArmGicV2Dxe.c index b952c3ae31c060ecbb43c0800d34e57664a8262a..fb40f56ff9231f3a28c3d90939bfd25ac3432f89 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; GicInterrupt = ArmGicV2AcknowledgeInterrupt (mGicInterruptInterfaceBase); @@ -349,8 +349,8 @@ GicV2ExitBootServicesEvent ( IN VOID *Context ) { - UINTN Index; - UINT32 GicInterrupt; + UINTN Index; + UINTN GicInterrupt; // Disable all the interrupts for (Index = 0; Index < mGicNumInterrupts; Index++) { -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'