]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: zImage: __armv3_mpu_cache_flush: respect should-be-zero specification
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 26 Jan 2010 21:18:09 +0000 (22:18 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 17 Jun 2010 09:10:03 +0000 (11:10 +0200)
Probably the register content for cache operations is "don't care" in
practice, but as r1 is explicitly zeroed, use that one.

Acked-by: Eric Miao <eric.miao@canonical.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/boot/compressed/head.S

index 7b7d95c84641135c2a92501cc45328b125b80bd0..2366613ad502baa950678e7c0b960ab530595428 100644 (file)
@@ -994,7 +994,7 @@ no_cache_id:
 __armv3_mmu_cache_flush:
 __armv3_mpu_cache_flush:
                mov     r1, #0
-               mcr     p15, 0, r0, c7, c0, 0   @ invalidate whole cache v3
+               mcr     p15, 0, r1, c7, c0, 0   @ invalidate whole cache v3
                mov     pc, lr
 
 /*