Skip to content
Snippets Groups Projects
  • Helge Deller's avatar
    0a3346b5
    linux-user/hppa: Increase guest stack size to 80MB for hppa target · 0a3346b5
    Helge Deller authored
    
    The hppa target requires a much bigger stack than many other targets,
    and the Linux kernel allocates 80 MB by default for it.
    
    This patch increases the guest stack for hppa to 80MB, and prevents
    that this default stack size gets reduced by a lower stack limit on the
    host.
    
    Since the stack grows upwards on hppa, the stack_limit value marks the
    upper boundary of the stack. Fix the output of /proc/self/maps (in the
    guest) to show the [stack] marker on the correct memory area.
    
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    Message-Id: <20220924114501.21767-6-deller@gmx.de>
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
    0a3346b5
    History
    linux-user/hppa: Increase guest stack size to 80MB for hppa target
    Helge Deller authored
    
    The hppa target requires a much bigger stack than many other targets,
    and the Linux kernel allocates 80 MB by default for it.
    
    This patch increases the guest stack for hppa to 80MB, and prevents
    that this default stack size gets reduced by a lower stack limit on the
    host.
    
    Since the stack grows upwards on hppa, the stack_limit value marks the
    upper boundary of the stack. Fix the output of /proc/self/maps (in the
    guest) to show the [stack] marker on the correct memory area.
    
    Signed-off-by: default avatarHelge Deller <deller@gmx.de>
    Message-Id: <20220924114501.21767-6-deller@gmx.de>
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
main.c 26.20 KiB