Go to the documentation of this file. 1 #ifndef _ASM_POWERPC_PGALLOC_64_H
2 #define _ASM_POWERPC_PGALLOC_64_H
10 #include <linux/slab.h>
35 #define MAX_PGTABLE_INDEX_SIZE 0xf
38 #define PGT_CACHE(shift) (pgtable_cache[(shift)-1])
50 #ifndef CONFIG_PPC_64K_PAGES
52 #define pgd_populate(MM, PGD, PUD) pgd_set(PGD, PUD)
67 pud_set(pud, (
unsigned long)pmd);
70 #define pmd_populate(mm, pmd, pte_page) \
71 pmd_populate_kernel(mm, pmd, page_address(pte_page))
72 #define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, (unsigned long)(pte))
73 #define pmd_pgtable(pmd) pmd_page(pmd)
78 #define pud_populate(mm, pud, pmd) pud_set(pud, (unsigned long)pmd)
83 pmd_set(pmd, (
unsigned long)pte);
86 #define pmd_populate(mm, pmd, pte_page) \
87 pmd_populate_kernel(mm, pmd, page_address(pte_page))
88 #define pmd_pgtable(pmd) pmd_page(pmd)
110 unsigned long address)
119 pgtable_page_ctor(page);
123 static inline void pgtable_free(
void *
table,
unsigned index_size)
133 #define __pmd_free_tlb(tlb, pmd, addr) \
134 pgtable_free_tlb(tlb, pmd, PMD_INDEX_SIZE)
135 #ifndef CONFIG_PPC_64K_PAGES
136 #define __pud_free_tlb(tlb, pud, addr) \
137 pgtable_free_tlb(tlb, pud, PUD_INDEX_SIZE)
141 #define check_pgt_cache() do { } while (0)