浏览代码

ARM: zImage: __armv3_mpu_cache_flush: respect should-be-zero specification

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>
Uwe Kleine-König 15 年之前
父节点
当前提交
63fa71872b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/arm/boot/compressed/head.S

+ 1 - 1
arch/arm/boot/compressed/head.S

@@ -994,7 +994,7 @@ no_cache_id:
 __armv3_mmu_cache_flush:
 __armv3_mmu_cache_flush:
 __armv3_mpu_cache_flush:
 __armv3_mpu_cache_flush:
 		mov	r1, #0
 		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
 		mov	pc, lr
 
 
 /*
 /*