From 41fb5d4634c17c042e0a3b2be0e8db85d2a083ad Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Mon, 16 Feb 2015 10:23:42 +0000 Subject: ArmPkg/ArmGic: Use the GIC Redistributor instead of GIC Distributor for GICv3 GICv3 controller with no GICv2 legacy support must use the GIC Redistributor registers instead of the GIC Distributor registers for some operations (eg: enable/disable interrupts). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin Tested-by: Ard Biesheuvel Reviewed-by: Ard Biesheuvel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16874 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c') diff --git a/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c b/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c index f37e95ede9..743c534e04 100644 --- a/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c +++ b/ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c @@ -2,7 +2,7 @@ Copyright (c) 2009, Hewlett-Packard Company. All rights reserved.
Portions copyright (c) 2010, Apple Inc. All rights reserved.
-Portions copyright (c) 2011-2014, ARM Ltd. All rights reserved.
+Portions copyright (c) 2011-2015, ARM Ltd. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -54,7 +54,7 @@ GicV2EnableInterruptSource ( return EFI_UNSUPPORTED; } - ArmGicEnableInterrupt (mGicDistributorBase, Source); + ArmGicEnableInterrupt (mGicDistributorBase, 0, Source); return EFI_SUCCESS; } @@ -81,7 +81,7 @@ GicV2DisableInterruptSource ( return EFI_UNSUPPORTED; } - ArmGicDisableInterrupt (mGicDistributorBase, Source); + ArmGicDisableInterrupt (mGicDistributorBase, 0, Source); return EFI_SUCCESS; } @@ -110,7 +110,7 @@ GicV2GetInterruptSourceState ( return EFI_UNSUPPORTED; } - *InterruptState = ArmGicIsInterruptEnabled (mGicDistributorBase, Source); + *InterruptState = ArmGicIsInterruptEnabled (mGicDistributorBase, 0, Source); return EFI_SUCCESS; } -- cgit v1.2.3