diff options
Diffstat (limited to 'include/asm-mips/pgtable.h')
-rw-r--r-- | include/asm-mips/pgtable.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index eaf5d9b3a0e1..34d06fe7caac 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h | |||
@@ -8,8 +8,6 @@ | |||
8 | #ifndef _ASM_PGTABLE_H | 8 | #ifndef _ASM_PGTABLE_H |
9 | #define _ASM_PGTABLE_H | 9 | #define _ASM_PGTABLE_H |
10 | 10 | ||
11 | #include <asm-generic/4level-fixup.h> | ||
12 | |||
13 | #include <linux/config.h> | 11 | #include <linux/config.h> |
14 | #ifdef CONFIG_32BIT | 12 | #ifdef CONFIG_32BIT |
15 | #include <asm/pgtable-32.h> | 13 | #include <asm/pgtable-32.h> |
@@ -148,11 +146,18 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt | |||
148 | #endif | 146 | #endif |
149 | 147 | ||
150 | /* | 148 | /* |
151 | * (pmds are folded into pgds so this doesn't get actually called, | 149 | * (pmds are folded into puds so this doesn't get actually called, |
152 | * but the define is needed for a generic inline function.) | 150 | * but the define is needed for a generic inline function.) |
153 | */ | 151 | */ |
154 | #define set_pmd(pmdptr, pmdval) do { *(pmdptr) = (pmdval); } while(0) | 152 | #define set_pmd(pmdptr, pmdval) do { *(pmdptr) = (pmdval); } while(0) |
155 | #define set_pgd(pgdptr, pgdval) do { *(pgdptr) = (pgdval); } while(0) | 153 | |
154 | #ifdef CONFIG_64BIT | ||
155 | /* | ||
156 | * (puds are folded into pgds so this doesn't get actually called, | ||
157 | * but the define is needed for a generic inline function.) | ||
158 | */ | ||
159 | #define set_pud(pudptr, pudval) do { *(pudptr) = (pudval); } while(0) | ||
160 | #endif | ||
156 | 161 | ||
157 | #define PGD_T_LOG2 ffz(~sizeof(pgd_t)) | 162 | #define PGD_T_LOG2 ffz(~sizeof(pgd_t)) |
158 | #define PMD_T_LOG2 ffz(~sizeof(pmd_t)) | 163 | #define PMD_T_LOG2 ffz(~sizeof(pmd_t)) |