[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/13] linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for
From: |
Helge Deller |
Subject: |
[PATCH 09/13] linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch |
Date: |
Fri, 26 Aug 2022 16:18:49 +0200 |
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>
---
linux-user/mmap.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 048c4135af..dba6823668 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -251,8 +251,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;
--
2.37.1
- Re: [PATCH 01/13] linux-user: Add missing signals in strace output, (continued)
- [PATCH 11/13] linux-user: Show timespec on strace for futex(), Helge Deller, 2022/08/26
- [PATCH 08/13] linux-user: Fix strace of chmod() if mode == 0, Helge Deller, 2022/08/26
- [PATCH 12/13] linux-user: Add close_range() syscall, Helge Deller, 2022/08/26
- [PATCH 02/13] linux-user: Add missing clock_gettime64() syscall strace, Helge Deller, 2022/08/26
- [PATCH 04/13] linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd() syscalls, Helge Deller, 2022/08/26
- [PATCH 07/13] linux-user/hppa: Dump IIR on register dump, Helge Deller, 2022/08/26
- [PATCH 05/13] linux-user: Log failing executable in EXCP_DUMP(), Helge Deller, 2022/08/26
- [PATCH 09/13] linux-user/hppa: Set TASK_UNMAPPED_BASE to 0xfa000000 for hppa arch,
Helge Deller <=
- [PATCH 13/13] linux-user: Add parameters of getrandom() syscall for strace, Helge Deller, 2022/08/26
- [PATCH 06/13] linux-user/hppa: Use EXCP_DUMP() to show enhanced debug info, Helge Deller, 2022/08/26