summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library/ArmArchTimerLib
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2014-06-03 16:39:23 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-06-03 16:39:23 +0000
commit27331bff97f4fb36bee3aad8e010576ca641304e (patch)
tree59cf544f153853f9b0912c5ba575e9fc52539047 /ArmPkg/Library/ArmArchTimerLib
parent01674afdad3460f1c1f5f7a941c4c5895c8c3f86 (diff)
downloadedk2-27331bff97f4fb36bee3aad8e010576ca641304e.tar.gz
edk2-27331bff97f4fb36bee3aad8e010576ca641304e.tar.bz2
edk2-27331bff97f4fb36bee3aad8e010576ca641304e.zip
ArmPkg: Added new ARM Processor Feature Register definitions
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15552 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Library/ArmArchTimerLib')
-rw-r--r--ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
index 4373e8c2e7..d1cd0c8e6e 100644
--- a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
+++ b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c
@@ -1,8 +1,8 @@
/** @file
Generic ARM implementation of TimerLib.h
- Copyright (c) 2011-2013, ARM Limited. All rights reserved.
-
+ Copyright (c) 2011-2014, ARM Limited. All rights reserved.
+
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -46,7 +46,7 @@ TimerConstructor (
#ifdef MDE_CPU_ARM
// Only set the frequency for ARMv7. We expect the secure firmware to have already do it
// If the security extensions are not implemented set Timer Frequency
- if ((ArmReadIdPfr1 () & 0xF0) == 0x0) {
+ if ((ArmReadIdPfr1 () & ARM_PFR1_SEC) == 0x0) {
ArmArchTimerSetTimerFreq (PcdGet32 (PcdArmArchTimerFreqInHz));
}
#endif