summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pgtable-ppc64-64k.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V2014-11-05 17:27:39 +0100
committerMichael Ellerman2014-11-14 07:24:21 +0100
commit06743521d0eae1263a09bccb1a92a9fbb94660b3 (patch)
tree6cfd2a29bb7abe82501c64676f35ead205079ffd /arch/powerpc/include/asm/pgtable-ppc64-64k.h
parentpowerpc: Disable CPU_FTR_TM if TM is disabled by firmware (diff)
downloadkernel-qcow2-linux-06743521d0eae1263a09bccb1a92a9fbb94660b3.tar.gz
kernel-qcow2-linux-06743521d0eae1263a09bccb1a92a9fbb94660b3.tar.xz
kernel-qcow2-linux-06743521d0eae1263a09bccb1a92a9fbb94660b3.zip
powerpc/mm: Add missing pmd accessors
This patch add documentation and missing accessors. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/pgtable-ppc64-64k.h')
-rw-r--r--arch/powerpc/include/asm/pgtable-ppc64-64k.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pgtable-ppc64-64k.h b/arch/powerpc/include/asm/pgtable-ppc64-64k.h
index a56b82fb0609..1de35bbd02a6 100644
--- a/arch/powerpc/include/asm/pgtable-ppc64-64k.h
+++ b/arch/powerpc/include/asm/pgtable-ppc64-64k.h
@@ -38,4 +38,7 @@
/* Bits to mask out from a PGD/PUD to get to the PMD page */
#define PUD_MASKED_BITS 0x1ff
+#define pgd_pte(pgd) (pud_pte(((pud_t){ pgd })))
+#define pte_pgd(pte) ((pgd_t)pte_pud(pte))
+
#endif /* _ASM_POWERPC_PGTABLE_PPC64_64K_H */