xref: /openbmc/qemu/linux-user/ppc/target_mman.h (revision 243975c0)
1 #ifndef PPC_TARGET_MMAN_H
2 #define PPC_TARGET_MMAN_H
3 
4 #define TARGET_MAP_NORESERVE            0x40
5 #define TARGET_MAP_LOCKED               0x80
6 
7 /*
8  * arch/powerpc/include/asm/task_size_64.h
9  * TASK_UNMAPPED_BASE_USER32    (PAGE_ALIGN(TASK_SIZE_USER32 / 4))
10  * TASK_UNMAPPED_BASE_USER64    (PAGE_ALIGN(DEFAULT_MAP_WINDOW_USER64 / 4))
11  * TASK_SIZE_USER32             (0x0000000100000000UL - (1 * PAGE_SIZE))
12  * DEFAULT_MAP_WINDOW_USER64    TASK_SIZE_64TB (with 4k pages)
13  */
14 #ifdef TARGET_PPC64
15 #define TASK_UNMAPPED_BASE      0x0000100000000000ull
16 #else
17 #define TASK_UNMAPPED_BASE      0x40000000
18 #endif
19 
20 /* arch/powerpc/include/asm/elf.h */
21 #ifdef TARGET_PPC64
22 #define ELF_ET_DYN_BASE         0x100000000ull
23 #else
24 #define ELF_ET_DYN_BASE         0x000400000
25 #endif
26 
27 #include "../generic/target_mman.h"
28 
29 #endif
30