diff mbox series

[v3,13/34] nios2: mm: Add p?d_large() definitions

Message ID 20190227170608.27963-14-steven.price@arm.com
State New, archived
Headers show
Series Convert x86 & arm64 to use generic page walk | expand

Commit Message

Steven Price Feb. 27, 2019, 5:05 p.m. UTC
walk_page_range() is going to be allowed to walk page tables other than
those of user space. For this it needs to know when it has reached a
'leaf' entry in the page tables. This information is provided by the
p?d_large() functions/macros.

For nios2, we don't support large pages, so add a stub returning 0.

CC: Ley Foon Tan <lftan@altera.com>
CC: nios2-dev@lists.rocketboards.org
Signed-off-by: Steven Price <steven.price@arm.com>
 arch/nios2/include/asm/pgtable.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series


diff --git a/arch/nios2/include/asm/pgtable.h b/arch/nios2/include/asm/pgtable.h
index db4f7d179220..b6ee0c205279 100644
--- a/arch/nios2/include/asm/pgtable.h
+++ b/arch/nios2/include/asm/pgtable.h
@@ -190,6 +190,11 @@  static inline int pmd_present(pmd_t pmd)
 			&& (pmd_val(pmd) != 0UL);
+static inline int pmd_large(pmd_t pmd)
+	return 0;
 static inline void pmd_clear(pmd_t *pmdp)
 	pmd_val(*pmdp) = (unsigned long) invalid_pte_table;