]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita88307a07e7e5fc8f90a37e60dd3e0ea1260747f
tree381c6e4d9365c72f810723194070c303bb7af625
parentf71ea41b9f51182de58e97a73325f3b12c31d49f
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