diff options
author | Manish Pandey <manish.pandey2@arm.com> | 2018-05-30 17:35:04 +0100 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2018-05-30 17:35:04 +0100 |
commit | 510d936a8a540c9cbac9514226e4fbf60b77f7b0 (patch) | |
tree | 39a2e4d5a305d42732f6de5c17644dcd7eea10f4 | |
parent | b587a336ee01b162a8ceb4d292f828e27744eb74 (diff) |
bootwrapper: bug fix when generic timer is not supported.
when generic timer support is not available execution should
not set the timer frequency but the instruction used before
BEQ was AND which does not updates the zero flag, replaced it
with ANDS.
Change-Id: Ia0510a629fe7ebd7821c76bc40882f4488d0552b
Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
-rw-r--r-- | boot.S | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,7 +21,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 |