]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmGicArchSecLib/AArch64/ArmGicArchLib.c
ArmPkg: remove duplicated ARM/AArch64 ArmGicArchLib sources
[mirror_edk2.git] / ArmPkg / Library / ArmGicArchSecLib / AArch64 / ArmGicArchLib.c
index 4f2479e70c74882d31f68b9f2a84c7529491ec9d..ca81951b2b2bdae93724255ec0777bfa1872f1a1 100644 (file)
@@ -23,7 +23,7 @@ ArmGicGetSupportedArchRevision (
   // 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 (ArmReadIdPfr0 () & AARCH64_PFR0_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