aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-11-30 15:30:36 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-12-04 16:02:48 +0000
commitf684b4fa414d55b1033c036dbeb98575d047a406 (patch)
treea90b64ed63e1c5911bafb02d93298202f3c329a5
parentc002cb426429cc6f037a2d1af48446c3a02806b0 (diff)
downloadboot-wrapper-f684b4fa414d55b1033c036dbeb98575d047a406.tar.gz
bootwrapper: Fix check for architected timer
We need to set the flags when checking the feature register. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--boot.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.S b/boot.S
index 40ebd33..dd453e3 100644
--- a/boot.S
+++ b/boot.S
@@ -78,7 +78,7 @@ start:
@
mrc p15, 0, r0, c0, c1, 1 @ CPUID_EXT_PFR1
lsr r0, r0, #16
- and r0, r0, #1 @ Check generic timer support
+ ands r0, r0, #1 @ Check generic timer support
beq 1f
ldr r0, =24000000 @ 24MHz timer frequency
mcr p15, 0, r0, c14, c0, 0 @ CNTFRQ