]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s32: Reorder _PAGE_XXX flags to simplify TLB handling
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 25 Jan 2019 12:34:20 +0000 (12:34 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:16 +0000 (00:10 +1100)
commit7e54980103edbbce735da64f8745ffa8872f5798
tree06e9414cb146b251eead7a86677eb2f251651ade
parent85f20fdf39950e90f037b25c2c1835db64c37b73
powerpc/book3s32: Reorder _PAGE_XXX flags to simplify TLB handling

For pages without _PAGE_USER, PP field is 00
For pages with _PAGE_USER, PP field is 10 for RW and 11 for RO.

This patch sets _PAGE_USER to 0x002 and _PAGE_RW to 0x001
is order to simplify TLB handling by reducing amount of shifts.

The location of _PAGE_PRESENT and _PAGE_HASHPTE doesn't matter
as they are only SW related flags.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/32/hash.h
arch/powerpc/kernel/head_32.S
arch/powerpc/mm/hash_low_32.S