Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
[qemu/armbru.git] / linux-user / ppc / target_mman.h
blob646d1ccae74fa4427039357c797113927eca316d
1 #ifndef PPC_TARGET_MMAN_H
2 #define PPC_TARGET_MMAN_H
4 #define TARGET_MAP_NORESERVE 0x40
5 #define TARGET_MAP_LOCKED 0x80
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)
14 #ifdef TARGET_PPC64
15 #define TASK_UNMAPPED_BASE 0x0000100000000000ull
16 #else
17 #define TASK_UNMAPPED_BASE 0x40000000
18 #endif
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
27 #include "../generic/target_mman.h"
29 #endif