aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/asm/pgtable.h')
-rw-r--r--arch/um/include/asm/pgtable.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h
index bf974f712af7..2324b624f195 100644
--- a/arch/um/include/asm/pgtable.h
+++ b/arch/um/include/asm/pgtable.h
@@ -18,7 +18,6 @@
18#define _PAGE_ACCESSED 0x080 18#define _PAGE_ACCESSED 0x080
19#define _PAGE_DIRTY 0x100 19#define _PAGE_DIRTY 0x100
20/* If _PAGE_PRESENT is clear, we use these: */ 20/* If _PAGE_PRESENT is clear, we use these: */
21#define _PAGE_FILE 0x008 /* nonlinear file mapping, saved PTE; unset:swap */
22#define _PAGE_PROTNONE 0x010 /* if the user mapped it with PROT_NONE; 21#define _PAGE_PROTNONE 0x010 /* if the user mapped it with PROT_NONE;
23 pte_present gives true */ 22 pte_present gives true */
24 23
@@ -151,14 +150,6 @@ static inline int pte_write(pte_t pte)
151 !(pte_get_bits(pte, _PAGE_PROTNONE))); 150 !(pte_get_bits(pte, _PAGE_PROTNONE)));
152} 151}
153 152
154/*
155 * The following only works if pte_present() is not true.
156 */
157static inline int pte_file(pte_t pte)
158{
159 return pte_get_bits(pte, _PAGE_FILE);
160}
161
162static inline int pte_dirty(pte_t pte) 153static inline int pte_dirty(pte_t pte)
163{ 154{
164 return pte_get_bits(pte, _PAGE_DIRTY); 155 return pte_get_bits(pte, _PAGE_DIRTY);