summaryrefslogtreecommitdiff
path: root/ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-07-28 20:45:10 +0000
committerabiesheuvel <abiesheuvel@Edk2>2015-07-28 20:45:10 +0000
commitf94522c823610a4b44486835aca195c267bd3953 (patch)
treec6e89207fd96cd4b67dba763ce74a4bf429da231 /ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
parente9e9c7e8a4a987f9e68c016514aa8b60570a6450 (diff)
downloadedk2-f94522c823610a4b44486835aca195c267bd3953.zip
edk2-f94522c823610a4b44486835aca195c267bd3953.tar.gz
edk2-f94522c823610a4b44486835aca195c267bd3953.tar.bz2
ArmPkg: cache detected revision in ArmGicArchLib
Instead of inferring the GIC revision from the CPU id registers and the presence/availability of the system register interface upon each invocation, move the logic to a constructor and cache the result. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Tested-by: Leif Lindholm <leif.lindholm@linaro.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18100 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf')
-rw-r--r--ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf3
1 files changed, 2 insertions, 1 deletions
diff --git a/ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf b/ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
index d71b2ad..7dbcb08 100644
--- a/ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
+++ b/ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
@@ -17,7 +17,8 @@
FILE_GUID = cd67f41a-26e9-4482-90c9-a9aff803382a
MODULE_TYPE = BASE
VERSION_STRING = 1.0
- LIBRARY_CLASS = ArmGicArchLib
+ LIBRARY_CLASS = ArmGicArchLib|DXE_DRIVER UEFI_DRIVER UEFI_APPLICATION
+ CONSTRUCTOR = ArmGicArchLibInitialize
[Sources.ARM]
Arm/ArmGicArchLib.c