Linux 4.13.16
[linux/fpc-iii.git] / include / asm-generic / 4level-fixup.h
blob928fd66b12712241d100c5f4c9d3a857b9eabf1b
1 #ifndef _4LEVEL_FIXUP_H
2 #define _4LEVEL_FIXUP_H
4 #define __ARCH_HAS_4LEVEL_HACK
5 #define __PAGETABLE_PUD_FOLDED
7 #define PUD_SHIFT PGDIR_SHIFT
8 #define PUD_SIZE PGDIR_SIZE
9 #define PUD_MASK PGDIR_MASK
10 #define PTRS_PER_PUD 1
12 #define pud_t pgd_t
14 #define pmd_alloc(mm, pud, address) \
15 ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
16 NULL: pmd_offset(pud, address))
18 #define pud_offset(pgd, start) (pgd)
19 #define pud_none(pud) 0
20 #define pud_bad(pud) 0
21 #define pud_present(pud) 1
22 #define pud_ERROR(pud) do { } while (0)
23 #define pud_clear(pud) pgd_clear(pud)
24 #define pud_val(pud) pgd_val(pud)
25 #define pud_populate(mm, pud, pmd) pgd_populate(mm, pud, pmd)
26 #define pud_page(pud) pgd_page(pud)
27 #define pud_page_vaddr(pud) pgd_page_vaddr(pud)
29 #undef pud_free_tlb
30 #define pud_free_tlb(tlb, x, addr) do { } while (0)
31 #define pud_free(mm, x) do { } while (0)
32 #define __pud_free_tlb(tlb, x, addr) do { } while (0)
34 #undef pud_addr_end
35 #define pud_addr_end(addr, end) (end)
37 #include <asm-generic/5level-fixup.h>
39 #endif