The implementation is the same when we run in Secure or Non-Secure world.
This change makes this function available for ArmGicSec.inf and ArmGicNonSec.inf.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15625
6f19259b-4bc3-4df7-8a09-
765794883524
*\r
**/\r
\r
-#include <Uefi.h>\r
-#include <Library/IoLib.h>\r
+#include <Base.h>\r
#include <Library/ArmGicLib.h>\r
-#include <Library/PcdLib.h>\r
+#include <Library/IoLib.h>\r
\r
UINTN\r
EFIAPI\r
\r
return ((MmioRead32 (GicDistributorBase + ARM_GIC_ICDISER + (4 * RegOffset)) & (1 << RegShift)) != 0);\r
}\r
+\r
+VOID\r
+EFIAPI\r
+ArmGicDisableDistributor (\r
+ IN INTN GicDistributorBase\r
+ )\r
+{\r
+ // Disable Gic Distributor\r
+ MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x0);\r
+}\r
/** @file\r
*\r
-* Copyright (c) 2014, ARM Limited. All rights reserved.\r
+* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
*\r
* This program and the accompanying materials\r
* are licensed and made available under the terms and conditions of the BSD License\r
*/\r
MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1);\r
}\r
-\r
-VOID\r
-EFIAPI\r
-ArmGicDisableDistributor (\r
- IN INTN GicDistributorBase\r
- )\r
-{\r
- // Disable Gic Distributor\r
- MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x0);\r
-}\r