summaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/include/asm/pgtable.h')
-rw-r--r--arch/nds32/include/asm/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h
index 419f984eef70..7ff144467b29 100644
--- a/arch/nds32/include/asm/pgtable.h
+++ b/arch/nds32/include/asm/pgtable.h
@@ -308,6 +308,7 @@ static inline pmd_t __mk_pmd(pte_t * ptep, unsigned long prot)
return pmd;
}
+#define pmd_pfn(pmd) (pmd_val(pmd) >> PAGE_SHIFT)
#define pmd_page(pmd) virt_to_page(__va(pmd_val(pmd)))
/*