linux/arch/powerpc/mm
Christophe Leroy 697ece78f8 powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits.
Reorder Linux PTE bits to (almost) match Hash PTE bits.

RW Kernel : PP = 00
RO Kernel : PP = 00
RW User   : PP = 01
RO User   : PP = 11

So naturally, we should have
_PAGE_USER = 0x001
_PAGE_RW   = 0x002

Today 0x001 and 0x002 and _PAGE_PRESENT and _PAGE_HASHPTE which
both are software only bits.

Switch _PAGE_USER and _PAGE_PRESET
Switch _PAGE_RW and _PAGE_HASHPTE

This allows to remove a few insns.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c4d6c18a7f8d9d3b899bc492f55fbc40ef38896a.1583861325.git.christophe.leroy@c-s.fr
2020-03-25 12:09:27 +11:00
..
book3s32 powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits. 2020-03-25 12:09:27 +11:00
book3s64 powerpc/64s/radix: Fix CONFIG_SMP=n build 2020-03-18 00:05:54 +11:00
kasan powerpc/kasan: Fix kasan_remap_early_shadow_ro() 2020-03-25 12:09:27 +11:00
nohash powerpc/fsl_booke: Avoid creating duplicate tlb1 entry 2020-03-17 23:40:35 +11:00
ptdump powerpc/mm: ptdump: no need to check return value of debugfs_create functions 2020-03-04 22:44:25 +11:00
copro_fault.c
dma-noncoherent.c
drmem.c
fault.c Merge branch 'topic/user-access-begin' into next 2020-02-01 21:47:17 +11:00
highmem.c
hugetlbpage.c powerpc/hugetlb: Fix 512k hugepages on 8xx with 16k page size 2020-02-17 12:47:05 +11:00
init-common.c
init_32.c
init_64.c
ioremap.c
ioremap_32.c
ioremap_64.c
Makefile
mem.c Merge branch 'fixes' into next 2020-03-10 15:16:42 +11:00
mmap.c
mmu_context.c
mmu_decl.h
numa.c powerpc/numa: Remove late request for home node associativity 2020-03-04 22:44:31 +11:00
pgtable-frag.c
pgtable.c
pgtable_32.c powerpc/32: drop get_pteptr() 2020-02-26 10:34:41 +11:00
pgtable_64.c
slice.c