diff options
author | Leif Lindholm <leif@nuviainc.com> | 2020-12-18 13:24:31 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-18 15:27:26 +0000 |
commit | 0dd0d42ab5b67293543d4e16dab9c82fe6afd07a (patch) | |
tree | 03f98c7abaf2c2da5bfe34e7f95bd601dc807e21 /ArmPkg | |
parent | 740b870dc8660906523c85187ab5badd2fd8ea08 (diff) | |
download | edk2-0dd0d42ab5b67293543d4e16dab9c82fe6afd07a.tar.gz edk2-0dd0d42ab5b67293543d4e16dab9c82fe6afd07a.tar.bz2 edk2-0dd0d42ab5b67293543d4e16dab9c82fe6afd07a.zip |
ArmPkg: use helper to check for Security extensions in ArmArchTimerLib
Use the helper ArmHasSecurityExtensions () instead of accessing
ID_PFR1 directly. Only affects ARM build.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Signed-off-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c index 7c698fe471..24d9dae4e6 100644 --- a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c +++ b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c @@ -56,7 +56,7 @@ TimerConstructor ( // If the security extension is not implemented, set Timer Frequency
// here.
//
- if ((ArmReadIdPfr1 () & ARM_PFR1_SEC) == 0x0) {
+ if (ArmHasSecurityExtensions ()) {
ArmGenericTimerSetTimerFreq (PcdGet32 (PcdArmArchTimerFreqInHz));
}
#endif
|