Commit Message

This patch tweaks the way some PTE bit combinations are defined, in such a
way that the 32 and 64-bit variant become almost identical and that will
make it easier to bring in a new common pte-* file for the new variant
of the Book3-E support.
The combination of bits defining access to kernel pages are now clearly
separated from the combination used by userspace and the core VM. The
resulting generated code should remain identical unless I made a mistake.
Note: While at it, I removed a non-sensical statement related to CONFIG_KGDB
in ppc_mmu_32.c which could cause kernel mappings to be user accessible when
that option is enabled. Probably something that bitrot.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
arch/powerpc/include/asm/fixmap.h | 2
arch/powerpc/include/asm/pgtable-ppc32.h | 105 +++----------------------------
arch/powerpc/include/asm/pgtable-ppc64.h | 44 +++++++-----
arch/powerpc/include/asm/pgtable.h | 4 +
arch/powerpc/include/asm/pte-8xx.h | 3
arch/powerpc/include/asm/pte-hash32.h | 1
arch/powerpc/include/asm/pte-hash64-4k.h | 3
arch/powerpc/include/asm/pte-hash64.h | 47 +++++++------
arch/powerpc/mm/fsl_booke_mmu.c | 2
arch/powerpc/mm/pgtable_32.c | 4 -
arch/powerpc/mm/ppc_mmu_32.c | 10 --
arch/powerpc/sysdev/cpm_common.c | 2
12 files changed, 79 insertions(+), 148 deletions(-)