Commit 99cc2192 authored by Frank van Maarseveen's avatar Frank van Maarseveen Committed by Linus Torvalds

[PATCH] ppc32: Correct an instruction in the boot code

In the flush and invalidate bootcode on PPC4xx we were accidentally using
the wrong instruction.  Use cmplw, which reads from a register like we
want.
Signed-off-by: default avatarTom Rini <trini@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 83f7da8a
...@@ -252,7 +252,7 @@ _GLOBAL(flush_instruction_cache) ...@@ -252,7 +252,7 @@ _GLOBAL(flush_instruction_cache)
1: dcbf r0,r3 # Flush the data cache 1: dcbf r0,r3 # Flush the data cache
icbi r0,r3 # Invalidate the instruction cache icbi r0,r3 # Invalidate the instruction cache
addi r3,r3,0x10 # Increment by one cache line addi r3,r3,0x10 # Increment by one cache line
cmplwi cr0,r3,r4 # Are we at the end yet? cmplw cr0,r3,r4 # Are we at the end yet?
blt 1b # No, keep flushing and invalidating blt 1b # No, keep flushing and invalidating
#else #else
/* Enable, invalidate and then disable the L1 icache/dcache. */ /* Enable, invalidate and then disable the L1 icache/dcache. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment