From 2d708164e0475064e0e2167bd73e8570e22df1e0 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 2 Aug 2023 14:29:40 -0700 Subject: linux-user: Define TASK_UNMAPPED_BASE in $guest/target_mman.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide default values that are as close as possible to the values used by the guest's kernel. Tested-by: Helge Deller Reviewed-by: Helge Deller Reviewed-by: Akihiko Odaki Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- linux-user/xtensa/target_mman.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux-user/xtensa') diff --git a/linux-user/xtensa/target_mman.h b/linux-user/xtensa/target_mman.h index 3933771..c4f671a 100644 --- a/linux-user/xtensa/target_mman.h +++ b/linux-user/xtensa/target_mman.h @@ -14,6 +14,12 @@ #define TARGET_MAP_STACK 0x40000 #define TARGET_MAP_HUGETLB 0x80000 +/* + * arch/xtensa/include/asm/processor.h: + * TASK_UNMAPPED_BASE (TASK_SIZE / 2) + */ +#define TASK_UNMAPPED_BASE (1u << (TARGET_VIRT_ADDR_SPACE_BITS - 1)) + #include "../generic/target_mman.h" #endif -- cgit v1.1