Skip to content

Commit c0e5073

Browse files
ardbiesheuvelRussell King
authored and
Russell King
committed
ARM: 9057/1: cache-v7: add missing ISB after cache level selection
A write to CSSELR needs to complete before its results can be observed via CCSIDR. So add a ISB to ensure that this is the case. Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent c4e792d commit c0e5073

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arch/arm/mm/cache-v7.S

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ icache_size:
3838
* procedures.
3939
*/
4040
ENTRY(v7_invalidate_l1)
41-
mov r0, #0
42-
mcr p15, 2, r0, c0, c0, 0
43-
mrc p15, 1, r0, c0, c0, 0
41+
mov r0, #0
42+
mcr p15, 2, r0, c0, c0, 0 @ select L1 data cache in CSSELR
43+
isb
44+
mrc p15, 1, r0, c0, c0, 0 @ read cache geometry from CCSIDR
4445

4546
movw r1, #0x7fff
4647
and r2, r1, r0, lsr #13

0 commit comments

Comments
 (0)