2
0

target_mman.h 906 B

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