linux/arch/powerpc
Christophe Leroy daba790242 powerpc/mm: add pte helpers to query and change pte flags
In order to avoid using generic _PAGE_XXX flags in powerpc
core functions, define helpers for all needed flags:
- pte_mkuser() and pte_mkprivileged() to set/unset and/or
unset/set _PAGE_USER and/or _PAGE_PRIVILEGED
- pte_hashpte() to check if _PAGE_HASHPTE is set.
- pte_ci() check if cache is inhibited (already existing on book3s/64)
- pte_exprotect() to protect against execution
- pte_exec() and pte_mkexec() to query and set page execution
- pte_mkpte() to set _PAGE_PTE flag.
- pte_hw_valid() to check _PAGE_PRESENT since pte_present does
something different on book3s/64.

On book3s/32 there is no exec protection, so pte_mkexec() and
pte_exprotect() are nops and pte_exec() returns always true.

Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-10-14 18:04:09 +11:00
..
boot powerpc/boot: Build boot wrapper with optimisations 2018-10-13 22:21:25 +11:00
configs powerpc/config: Enable CONFIG_PRINTK_TIME 2018-10-03 15:40:06 +10:00
crypto powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
include powerpc/mm: add pte helpers to query and change pte flags 2018-10-14 18:04:09 +11:00
kernel powerpc: handover page flags with a pgprot_t parameter 2018-10-14 18:04:09 +11:00
kvm PPC KVM fixes for 4.19 2018-09-04 21:12:46 +02:00
lib powerpc: handover page flags with a pgprot_t parameter 2018-10-14 18:04:09 +11:00
math-emu
mm powerpc/mm: don't use _PAGE_EXEC in book3s/32 2018-10-14 18:04:09 +11:00
net powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
oprofile
perf powerpc/perf: Quiet IMC PMU registration message 2018-10-13 22:21:25 +11:00
platforms powerpc/mm: properly set PAGE_KERNEL flags in ioremap() 2018-10-14 18:04:09 +11:00
purgatory powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
sysdev powerpc: don't use ioremap_prot() nor __ioremap() unless really needed. 2018-10-14 18:04:09 +11:00
tools
xmon powerpc/xmon: Show the stack protector canary in xmon 2018-10-13 22:21:25 +11:00
Kconfig powerpc: Fix stackprotector detection for non-glibc toolchains 2018-10-13 22:21:25 +11:00
Kconfig.debug powerpc: remove redundant 'default n' from Kconfig-s 2018-10-13 22:21:25 +11:00
Makefile powerpc/Makefile: Fix PPC_BOOK3S_64 ASFLAGS 2018-10-13 22:21:25 +11:00
Makefile.postlink