aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2013-07-02 15:44:06 +0100
committerMark Rutland <mark.rutland@arm.com>2013-08-14 14:14:50 +0100
commit79de899b5a235fb8a2aacd0147ac83a2a86cfd47 (patch)
tree2ac5ca63489631825fd2af82cb80ce8fad659a1b
parentd9e63728ff454f338e41edd1433b7e5096120279 (diff)
downloadboot-wrapper-aarch64-79de899b5a235fb8a2aacd0147ac83a2a86cfd47.tar.gz
cache.S: fix max cache level detection
Due to incorrect operands for an and, we treat the value of the Ctype1 field of clidr_el1 as if it were the LoC field. Fix up the operands so we use LoC corretly. Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r--cache.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.S b/cache.S
index ce928eb..e8a73c8 100644
--- a/cache.S
+++ b/cache.S
@@ -15,7 +15,7 @@ flush_caches:
/* find what out the max cache level to flush */
lsr x1, x0, #24
- and x1, x0, #(0x7)
+ and x1, x1, #(0x7)
cbz x1, dcaches_done
mov x2, #0 /* level 1 (represented 1-off) */