]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix TLB invalidation on boot on 32-bit
authorRocky Craig <rocky.craig@hp.com>
Thu, 14 Aug 2008 13:11:54 +0000 (23:11 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 18 Aug 2008 04:22:34 +0000 (14:22 +1000)
commit35a7cbf7e9dc62b30a166ae6c481b56fda7b3caa
treebcf6de7ac2c62cdbeb95b92bbd3311436a8fbaf0
parent1d259e38cdeb5e857bbdb50c7d633a77e37a20c1
powerpc: Fix TLB invalidation on boot on 32-bit

The intent of "flush_tlbs" is to invalidate all TLB entries by doing a
TLB invalidate instruction for all pages in the address range 0 to
0x00400000.  A loop counter is set up at the high value and
decremented by page size.  However, the loop is only done once as the
sense of the conditional branch at the loop end does not match the
setup/decrement.  This fixes it to do the whole range by correcting
the branch condition.

Signed-off-by: Rocky Craig <rocky.craig@hp.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/head_32.S