summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/head_32.S
diff options
context:
space:
mode:
authorRocky Craig <rocky.craig@hp.com>2008-08-14 15:11:54 +0200
committerPaul Mackerras <paulus@samba.org>2008-08-18 06:22:34 +0200
commit9acd57ca74b12bc8ba8da12c72b19ede2cddcb53 (patch)
treebcf6de7ac2c62cdbeb95b92bbd3311436a8fbaf0 /arch/powerpc/kernel/head_32.S
parentpowerpc: Fix loss of vdso on fork on 32-bit (diff)
downloadlinux-9acd57ca74b12bc8ba8da12c72b19ede2cddcb53.tar.xz
linux-9acd57ca74b12bc8ba8da12c72b19ede2cddcb53.zip
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>
Diffstat (limited to 'arch/powerpc/kernel/head_32.S')
-rw-r--r--arch/powerpc/kernel/head_32.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S
index 99ee2f0f0f2b..8bb657519299 100644
--- a/arch/powerpc/kernel/head_32.S
+++ b/arch/powerpc/kernel/head_32.S
@@ -1155,7 +1155,7 @@ flush_tlbs:
lis r10, 0x40
1: addic. r10, r10, -0x1000
tlbie r10
- blt 1b
+ bgt 1b
sync
blr