xref: /openbmc/qemu/linux-user/mips/target_mman.h (revision da2b71fa)
1 #ifndef MIPS_TARGET_MMAN_H
2 #define MIPS_TARGET_MMAN_H
3 
4 #define TARGET_PROT_SEM                 0x10
5 
6 #define TARGET_MAP_NORESERVE            0x0400
7 #define TARGET_MAP_ANONYMOUS            0x0800
8 #define TARGET_MAP_GROWSDOWN            0x1000
9 #define TARGET_MAP_DENYWRITE            0x2000
10 #define TARGET_MAP_EXECUTABLE           0x4000
11 #define TARGET_MAP_LOCKED               0x8000
12 #define TARGET_MAP_POPULATE             0x10000
13 #define TARGET_MAP_NONBLOCK             0x20000
14 #define TARGET_MAP_STACK                0x40000
15 #define TARGET_MAP_HUGETLB              0x80000
16 
17 /*
18  * arch/mips/include/asm/processor.h:
19  * TASK_UNMAPPED_BASE         PAGE_ALIGN(TASK_SIZE / 3)
20  */
21 #define TASK_UNMAPPED_BASE \
22     TARGET_PAGE_ALIGN((1ull << TARGET_VIRT_ADDR_SPACE_BITS) / 3)
23 
24 /* arch/mips/include/asm/elf.h */
25 #define ELF_ET_DYN_BASE       (TASK_UNMAPPED_BASE * 2)
26 
27 #include "../generic/target_mman.h"
28 
29 #endif
30