aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pgtable-ppc32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/pgtable-ppc32.h')
-rw-r--r--arch/powerpc/include/asm/pgtable-ppc32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pgtable-ppc32.h b/arch/powerpc/include/asm/pgtable-ppc32.h
index 9cde3c1522e3..26ce0ab0a9e4 100644
--- a/arch/powerpc/include/asm/pgtable-ppc32.h
+++ b/arch/powerpc/include/asm/pgtable-ppc32.h
@@ -347,10 +347,14 @@ static inline void __ptep_set_access_flags(pte_t *ptep, pte_t entry)
347#define pte_to_pgoff(pte) (pte_val(pte) >> 3) 347#define pte_to_pgoff(pte) (pte_val(pte) >> 3)
348#define pgoff_to_pte(off) ((pte_t) { ((off) << 3) | _PAGE_FILE }) 348#define pgoff_to_pte(off) ((pte_t) { ((off) << 3) | _PAGE_FILE })
349 349
350#ifndef CONFIG_PPC_4K_PAGES
351void pgtable_cache_init(void);
352#else
350/* 353/*
351 * No page table caches to initialise 354 * No page table caches to initialise
352 */ 355 */
353#define pgtable_cache_init() do { } while (0) 356#define pgtable_cache_init() do { } while (0)
357#endif
354 358
355extern int get_pteptr(struct mm_struct *mm, unsigned long addr, pte_t **ptep, 359extern int get_pteptr(struct mm_struct *mm, unsigned long addr, pte_t **ptep,
356 pmd_t **pmdp); 360 pmd_t **pmdp);