Go to the documentation of this file. 1 #ifndef _ASM_X86_PGTABLE_32_H
2 #define _ASM_X86_PGTABLE_32_H
16 #include <asm/processor.h>
17 #include <asm/fixmap.h>
19 #include <asm/paravirt.h>
21 #include <linux/bitops.h>
22 #include <linux/list.h>
46 # include <asm/pgtable-3level.h>
48 # include <asm/pgtable-2level.h>
51 #if defined(CONFIG_HIGHPTE)
52 #define pte_offset_map(dir, address) \
53 ((pte_t *)kmap_atomic(pmd_page(*(dir))) + \
55 #define pte_unmap(pte) kunmap_atomic((pte))
57 #define pte_offset_map(dir, address) \
58 ((pte_t *)page_address(pmd_page(*(dir))) + pte_index((address)))
59 #define pte_unmap(pte) do { } while (0)
63 #define kpte_clear_flush(ptep, vaddr) \
65 pte_clear(&init_mm, (vaddr), (ptep)); \
66 __flush_tlb_one((vaddr)); \
73 #define update_mmu_cache(vma, address, ptep) do { } while (0)
74 #define update_mmu_cache_pmd(vma, address, pmd) do { } while (0)
83 #define kern_addr_valid(addr) (1)
85 #define kern_addr_valid(kaddr) (0)