aboutsummaryrefslogtreecommitdiff
path: root/linux-user/loongarch64/target_mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/loongarch64/target_mman.h')
-rw-r--r--linux-user/loongarch64/target_mman.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-user/loongarch64/target_mman.h b/linux-user/loongarch64/target_mman.h
new file mode 100644
index 0000000000..8c2a3d5596
--- /dev/null
+++ b/linux-user/loongarch64/target_mman.h
@@ -0,0 +1,12 @@
+/*
+ * arch/loongarch/include/asm/processor.h:
+ * TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
+ * TASK_SIZE64 0x1UL << (... ? VA_BITS : ...)
+ */
+#define TASK_UNMAPPED_BASE \
+ TARGET_PAGE_ALIGN((1ull << TARGET_VIRT_ADDR_SPACE_BITS) / 3)
+
+/* arch/loongarch/include/asm/elf.h */
+#define ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE * 2)
+
+#include "../generic/target_mman.h"