summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/mmu_context.h
diff options
context:
space:
mode:
authorRam Pai <linuxram@us.ibm.com>2018-01-19 02:50:36 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-20 12:59:03 +0100
commita6590ca55f1f49912e17e4811ccae9a51bda8859 (patch)
treebf406906eb4c82c0c7a7e25607e865a0206d0251 /arch/powerpc/include/asm/mmu_context.h
parentpowerpc: map vma key-protection bits to pte key bits. (diff)
downloadlinux-a6590ca55f1f49912e17e4811ccae9a51bda8859.tar.xz
linux-a6590ca55f1f49912e17e4811ccae9a51bda8859.zip
powerpc: Program HPTE key protection bits
Map the PTE protection key bits to the HPTE key protection bits, while creating HPTE entries. Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/mmu_context.h')
-rw-r--r--arch/powerpc/include/asm/mmu_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h
index 3ba571dfdfd9..209f12705fbb 100644
--- a/arch/powerpc/include/asm/mmu_context.h
+++ b/arch/powerpc/include/asm/mmu_context.h
@@ -203,6 +203,12 @@ static inline int vma_pkey(struct vm_area_struct *vma)
{
return 0;
}
+
+static inline u64 pte_to_hpte_pkey_bits(u64 pteflags)
+{
+ return 0x0UL;
+}
+
#endif /* CONFIG_PPC_MEM_KEYS */
#endif /* __KERNEL__ */