]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/arm64/include/asm/elf.h
arm64: mm: Allow forcing all userspace addresses to 52-bit
[linux.git] / arch / arm64 / include / asm / elf.h
index bc9bd9e77d9dc09da0d8bdfb3c5657a3ab84890b..6adc1a90e7e6b62b752e4da7a433bb5163517598 100644 (file)
  * 64-bit, this is above 4GB to leave the entire 32-bit address
  * space open for things that want to use the area for 32-bit pointers.
  */
+#ifdef CONFIG_ARM64_FORCE_52BIT
+#define ELF_ET_DYN_BASE                (2 * TASK_SIZE_64 / 3)
+#else
 #define ELF_ET_DYN_BASE                (2 * DEFAULT_MAP_WINDOW_64 / 3)
+#endif /* CONFIG_ARM64_FORCE_52BIT */
 
 #ifndef __ASSEMBLY__