summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-01 23:33:29 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-01 23:33:29 +0000
commitce4b2bd4c2ff9447c8d6b6411cea3754c569fe88 (patch)
treeb37543b9603123483e35fa201a9660fb3e2511a1 /ArmPkg/Library
parenta8151a707455023060b075a3ab80cd95df7ab123 (diff)
downloadedk2-ce4b2bd4c2ff9447c8d6b6411cea3754c569fe88.tar.gz
edk2-ce4b2bd4c2ff9447c8d6b6411cea3754c569fe88.tar.bz2
edk2-ce4b2bd4c2ff9447c8d6b6411cea3754c569fe88.zip
ArmPkg/ArmArchTimerLib: Fix TimerLib when the security extension is not implemented
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12628 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Library')
-rw-r--r--ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
index 61295a6580..3d5db05b35 100644
--- a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
+++ b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
@@ -44,7 +44,7 @@ ArmArchTimerLibConstructor (
ASSERT (TICKS_PER_MICRO_SEC);
// If the security extensions are not implemented set Timer Frequency
- if ((ArmReadIdPfr1 () & 0xF0)) {
+ if ((ArmReadIdPfr1 () & 0xF0) == 0x0) {
ArmArchTimerSetTimerFreq (PcdGet32 (PcdArmArchTimerFreqInHz));
}