Skip to content

Commit

Permalink
ARM: imx6: fix v7_invalidate_l1 by adding I-Cache invalidation
Browse files Browse the repository at this point in the history
The recent suspend/resume and reset testing on imx6q discovers that
not only D-Cache but also I-Cache has random data and validity when
the core comes out of a power recycle.

This patch adds I-Cache invalidation into v7_invalidate_l1 to make
sure both D-Cache and I-Cache invalidated on power-up.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Shawn Guo committed Dec 30, 2011
1 parent 5f0a6e2 commit 5b2acf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-imx/head-v7.S
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*/
ENTRY(v7_invalidate_l1)
mov r0, #0
mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache
mcr p15, 2, r0, c0, c0, 0
mrc p15, 1, r0, c0, c0, 0

Expand Down

0 comments on commit 5b2acf3

Please sign in to comment.