lkml.org 
[lkml]   [2019]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 22/34] unicore32: mm: Add p?d_large() definitions
Date
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 unicore32, we don't support large pages, so add a stub returning 0.

CC: Guan Xuetao <gxt@pku.edu.cn>
Signed-off-by: Steven Price <steven.price@arm.com>
---
arch/unicore32/include/asm/pgtable.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/unicore32/include/asm/pgtable.h b/arch/unicore32/include/asm/pgtable.h
index a4f2bef37e70..b45429df8b99 100644
--- a/arch/unicore32/include/asm/pgtable.h
+++ b/arch/unicore32/include/asm/pgtable.h
@@ -209,6 +209,7 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; }
#define pmd_bad(pmd) (((pmd_val(pmd) & \
(PMD_PRESENT | PMD_TYPE_MASK)) \
!= (PMD_PRESENT | PMD_TYPE_TABLE)))
+#define pmd_large(pmd) (0)

#define set_pmd(pmdpd, pmdval) \
do { \
--
2.20.1
\
 
 \ /
  Last update: 2019-02-27 18:09    [W:0.244 / U:8.204 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site