1 #ifndef _4LEVEL_FIXUP_H
2 #define _4LEVEL_FIXUP_H
4 #define __ARCH_HAS_4LEVEL_HACK
5 #define __PAGETABLE_PUD_FOLDED
7 #define PUD_SIZE PGDIR_SIZE
8 #define PUD_MASK PGDIR_MASK
13 #define pmd_alloc(mm, pud, address) \
16 ret = __pmd_alloc(mm, pud, address); \
18 ret = pmd_offset(pud, address); \
22 #define pud_alloc(mm, pgd, address) (pgd)
23 #define pud_offset(pgd, start) (pgd)
24 #define pud_none(pud) 0
25 #define pud_bad(pud) 0
26 #define pud_present(pud) 1
27 #define pud_ERROR(pud) do { } while (0)
28 #define pud_clear(pud) pgd_clear(pud)
31 #define pud_free_tlb(tlb, x) do { } while (0)
32 #define pud_free(x) do { } while (0)
33 #define __pud_free_tlb(tlb, x) do { } while (0)
36 #define pud_addr_end(addr, end) (end)