]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmGicArchLib/Arm/ArmGicArchLib.c
ArmPkg: use ID register helper for ArmGicArch(Sec)Lib
[mirror_edk2.git] / ArmPkg / Library / ArmGicArchLib / Arm / ArmGicArchLib.c
index 222d8059825d0817c9757919492c242c9b8074f6..7e7e46e69faac1ac6681b21665e08f5e7b173c1e 100644 (file)
@@ -25,7 +25,7 @@ ArmGicArchLibInitialize (
   // feature is implemented on the CPU. This is also convenient as our GICv3\r
   // driver requires SRE. If only Memory mapped access is available we try to\r
   // drive the GIC as a v2.\r
-  if (ArmReadIdPfr1 () & ARM_PFR1_GIC) {\r
+  if (ArmHasGicSystemRegisters ()) {\r
     // Make sure System Register access is enabled (SRE). This depends on the\r
     // higher privilege level giving us permission, otherwise we will either\r
     // cause an exception here, or the write doesn't stick in which case we need\r