summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorHelge Deller2022-09-18 21:45:51 +0200
committerLaurent Vivier2022-09-27 09:29:33 +0200
commit9c9b5d7b9220d2f52a2df24373c8f35604f444fc (patch)
tree2bb18dddd3284a686b6753402a131894b5c9f4aa /linux-user
parentlinux-user: Fix strace of chmod() if mode == 0 (diff)
downloadqemu-9c9b5d7b9220d2f52a2df24373c8f35604f444fc.tar.gz
qemu-9c9b5d7b9220d2f52a2df24373c8f35604f444fc.tar.xz
qemu-9c9b5d7b9220d2f52a2df24373c8f35604f444fc.zip
linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch
On the parisc architecture the stack grows upwards. Move the TASK_UNMAPPED_BASE to high memory area as it's done by the kernel on physical machines. Signed-off-by: Helge Deller <deller@gmx.de> Message-Id: <20220918194555.83535-9-deller@gmx.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/mmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 6a828e8418..83fdae7034 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -253,8 +253,12 @@ static int mmap_frag(abi_ulong real_start,
# define TASK_UNMAPPED_BASE (1ul << 38)
#endif
#else
+#ifdef TARGET_HPPA
+# define TASK_UNMAPPED_BASE 0xfa000000
+#else
# define TASK_UNMAPPED_BASE 0x40000000
#endif
+#endif
abi_ulong mmap_next_start = TASK_UNMAPPED_BASE;
unsigned long last_brk;