Go to the documentation of this file.
12 #ifndef __UNICORE_PGALLOC_H__
13 #define __UNICORE_PGALLOC_H__
15 #include <asm/pgtable-hwdef.h>
16 #include <asm/processor.h>
17 #include <asm/cacheflush.h>
18 #include <asm/tlbflush.h>
20 #define check_pgt_cache() do { } while (0)
22 #define _PAGE_USER_TABLE (PMD_TYPE_TABLE | PMD_PRESENT)
23 #define _PAGE_KERNEL_TABLE (PMD_TYPE_TABLE | PMD_PRESENT)
28 #define pgd_alloc(mm) get_pgd_slow(mm)
29 #define pgd_free(mm, pgd) free_pgd_slow(mm, pgd)
31 #define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_REPEAT | __GFP_ZERO)
55 if (!PageHighMem(pte)) {
59 pgtable_page_ctor(pte);
76 pgtable_page_dtor(pte);
80 static inline void __pmd_populate(
pmd_t *pmdp,
unsigned long pmdval)
83 flush_pmd_entry(pmdp);
93 unsigned long pte_ptr = (
unsigned long)ptep;
108 #define pmd_pgtable(pmd) pmd_page(pmd)