powerpc/mm/book3s-64: Shuffle read, write, execute and user bits in PTE
authorPaul Mackerras <paulus@samba.org>
Mon, 22 Feb 2016 02:41:18 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Feb 2016 09:34:40 +0000 (20:34 +1100)
commitc915df162d09f0957baf56fd3e2f03b8992699a6
tree381c6e4d9365c72f810723194070c303bb7af625
parenta9d4996df1f49dc7b45e55060436cace87f1e0d4
powerpc/mm/book3s-64: Shuffle read, write, execute and user bits in PTE

This moves the _PAGE_EXEC, _PAGE_RW and _PAGE_USER bits around in
the Linux PTE on 64-bit Book 3S systems to correspond with the bit
positions used in radix mode by PowerISA v3.0 CPUs.  This also adds
a _PAGE_READ bit corresponding to the read permission bit in the
radix PTE.  _PAGE_READ is currently unused but could possibly be used
in future to improve pte_protnone().

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash.h