diff options
Diffstat (limited to 'include/asm-mips/pgtable.h')
-rw-r--r-- | include/asm-mips/pgtable.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index f80fe75c780..a36ca1be17f 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h | |||
@@ -8,7 +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 <linux/config.h> | ||
12 | #ifdef CONFIG_32BIT | 11 | #ifdef CONFIG_32BIT |
13 | #include <asm/pgtable-32.h> | 12 | #include <asm/pgtable-32.h> |
14 | #endif | 13 | #endif |
@@ -353,8 +352,9 @@ static inline pgprot_t pgprot_noncached(pgprot_t _prot) | |||
353 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) | 352 | #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32_R1) |
354 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | 353 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) |
355 | { | 354 | { |
356 | pte.pte_low &= _PAGE_CHG_MASK; | 355 | pte.pte_low &= _PAGE_CHG_MASK; |
357 | pte.pte_low |= pgprot_val(newprot); | 356 | pte.pte_high &= ~0x3f; |
357 | pte.pte_low |= pgprot_val(newprot); | ||
358 | pte.pte_high |= pgprot_val(newprot) & 0x3f; | 358 | pte.pte_high |= pgprot_val(newprot) & 0x3f; |
359 | return pte; | 359 | return pte; |
360 | } | 360 | } |
@@ -378,9 +378,7 @@ static inline void update_mmu_cache(struct vm_area_struct *vma, | |||
378 | __update_cache(vma, address, pte); | 378 | __update_cache(vma, address, pte); |
379 | } | 379 | } |
380 | 380 | ||
381 | #ifndef CONFIG_NEED_MULTIPLE_NODES | ||
382 | #define kern_addr_valid(addr) (1) | 381 | #define kern_addr_valid(addr) (1) |
383 | #endif | ||
384 | 382 | ||
385 | #ifdef CONFIG_64BIT_PHYS_ADDR | 383 | #ifdef CONFIG_64BIT_PHYS_ADDR |
386 | extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); | 384 | extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); |