]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/ArmPkg.dsc
ArmPkg: split off ArmGicArchLib from ArmGicLib
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 28 Jul 2015 20:44:44 +0000 (20:44 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 28 Jul 2015 20:44:44 +0000 (20:44 +0000)
commit8d13298b8008ff62e107deb2a293ea267943a977
tree6db916ee95b3878617f5cce0c8fcec2525e9e106
parentbce29e305979859de6ac61658a828f2e50316a34
ArmPkg: split off ArmGicArchLib from ArmGicLib

The current implementation of ArmGicGetSupportedArchRevision ()
that is used by all ARM platforms is entirely stateless (in order
to support being executed from flash) so it needs to interrogate
the hardware for the supported GIC revision upon each invocation.

However, this statelessness is only needed for SEC type modules;
in all other cases, we could easily determine the GIC revision once,
and store the result in a global variable.

In preparation of having separate early and normal versions, this patch
introduces the ArmGicArchLib library class and default implementation,
and moves the existing ArmGicGetSupportedArchRevision () into it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-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@18098 6f19259b-4bc3-4df7-8a09-765794883524
16 files changed:
ArmPkg/ArmPkg.dec
ArmPkg/ArmPkg.dsc
ArmPkg/Drivers/ArmGic/AArch64/ArmGicArchLib.c [deleted file]
ArmPkg/Drivers/ArmGic/Arm/ArmGicArchLib.c [deleted file]
ArmPkg/Drivers/ArmGic/ArmGicLib.inf
ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
ArmPkg/Include/Library/ArmGicArchLib.h [new file with mode: 0644]
ArmPkg/Include/Library/ArmGicLib.h
ArmPkg/Library/ArmGicArchLib/AArch64/ArmGicArchLib.c [new file with mode: 0644]
ArmPkg/Library/ArmGicArchLib/Arm/ArmGicArchLib.c [new file with mode: 0644]
ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf [new file with mode: 0644]
ArmPlatformPkg/ArmPlatformPkg-2ndstage.dsc
ArmPlatformPkg/ArmPlatformPkg.dsc
ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb.dsc.inc
ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
ArmVirtPkg/ArmVirt.dsc.inc