From: Rocky Craig Date: Thu, 14 Aug 2008 13:11:54 +0000 (+1000) Subject: powerpc: Fix TLB invalidation on boot on 32-bit X-Git-Tag: v2.6.27-rc4~44^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9acd57ca74b12bc8ba8da12c72b19ede2cddcb53;p=pandora-kernel.git 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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed