powerpc/fsl-booke: Use HW PTE format if CONFIG_PTE_64BIT
commit76acc2c1a7a9a8c2cae7e9cf8d0a8b374a48aa94
authorKumar Gala <galak@kernel.crashing.org>
Tue, 1 Sep 2009 15:48:42 +0000 (1 15:48 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 2 Sep 2009 06:20:41 +0000 (2 16:20 +1000)
tree3d65ea23c18d4a73ce55724de66ae9eb7eb2358d
parent1d5d9527d8ed8d87beb22a4fd954366aeabd12c7
powerpc/fsl-booke: Use HW PTE format if CONFIG_PTE_64BIT

Switch to using the Power ISA defined PTE format when we have a 64-bit
PTE.  This makes the code handling between fsl-booke and book3e-64
similiar for TLB faults.

Additionally this lets use take advantage of the page size encodings and
full permissions that the HW PTE defines.

Also defined _PMD_PRESENT, _PMD_PRESENT_MASK, and _PMD_BAD since the
32-bit ppc arch code expects them.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pgtable-ppc32.h
arch/powerpc/include/asm/pte-book3e.h
arch/powerpc/include/asm/pte-fsl-booke.h
arch/powerpc/kernel/head_fsl_booke.S