Go to the documentation of this file. 1 #ifndef _ASM_X86_PAGE_DEFS_H
2 #define _ASM_X86_PAGE_DEFS_H
4 #include <linux/const.h>
5 #include <linux/types.h>
9 #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
10 #define PAGE_MASK (~(PAGE_SIZE-1))
12 #define __PHYSICAL_MASK ((phys_addr_t)((1ULL << __PHYSICAL_MASK_SHIFT) - 1))
13 #define __VIRTUAL_MASK ((1UL << __VIRTUAL_MASK_SHIFT) - 1)
18 #define PHYSICAL_PAGE_MASK (((signed long)PAGE_MASK) & __PHYSICAL_MASK)
20 #define PMD_PAGE_SIZE (_AC(1, UL) << PMD_SHIFT)
21 #define PMD_PAGE_MASK (~(PMD_PAGE_SIZE-1))
23 #define HPAGE_SHIFT PMD_SHIFT
24 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT)
25 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
26 #define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
28 #define HUGE_MAX_HSTATE 2
30 #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
32 #define VM_DATA_DEFAULT_FLAGS \
33 (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
34 VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)