powerpc/book3e-64: Add support to initial_tlb_book3e for non-HES TLB
authorKumar Gala <galak@kernel.crashing.org>
Tue, 18 Aug 2009 19:08:33 +0000 (19:08 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Aug 2009 04:24:14 +0000 (14:24 +1000)
commitbb1af71ecbfdbecbe9f7e43f703da5840b76c2e4
tree91167c249090c0636d56316afb08ca56f51bdfc8
parent4b98d9e713a03bd79ced8800e24a56359f9effbf
powerpc/book3e-64: Add support to initial_tlb_book3e for non-HES TLB

We now search through TLBnCFG looking for the first array that has IPROT
support (we assume that there is only one).  If that TLB has hardware
entry select (HES) support we use the existing code and with the proper
TLB select (the HES code still needs to clean up bolted entries from
firmware).  The non-HES code is pretty similiar to the 32-bit FSL Book-E
code but does make some new assumtions (like that we have tlbilx) and
simplifies things down a bit.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/kernel/exceptions-64e.S