summaryrefslogtreecommitdiff
path: root/arch/s390/boot/pgm_check_info.c
diff options
context:
space:
mode:
authorAlexander Egorenkov <egorenar@linux.ibm.com>2021-06-30 18:17:53 +0300
committerHeiko Carstens <hca@linux.ibm.com>2021-07-27 10:39:13 +0300
commit256d78d08177d72ae27621378699c9b35231d524 (patch)
treeaa4e609c90c455d2d282948263ea8b4353331f58 /arch/s390/boot/pgm_check_info.c
parent7fadcc078785416b1e2423fc624e054bb5a6e3b0 (diff)
downloadlinux-256d78d08177d72ae27621378699c9b35231d524.tar.xz
s390/boot: make stacks part of the decompressor's image
Instead of using constant addresses for the normal and dump-info stacks, allocate both stacks in the decompressor's image and load the stack register in a position-independent manner. This will allow loading and entering the decompressor at an arbitrary memory address without corrupting the content at the fixed addresses used until now for both stacks. This is one of the prerequisites for being able to kexec the decompressor from its load address without relocating it first. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/pgm_check_info.c')
-rw-r--r--arch/s390/boot/pgm_check_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/boot/pgm_check_info.c b/arch/s390/boot/pgm_check_info.c
index 7126a1b3293d..209f6ae5a197 100644
--- a/arch/s390/boot/pgm_check_info.c
+++ b/arch/s390/boot/pgm_check_info.c
@@ -125,8 +125,8 @@ out:
static noinline void print_stacktrace(void)
{
- struct stack_info boot_stack = { STACK_TYPE_TASK, BOOT_STACK_OFFSET,
- BOOT_STACK_OFFSET + BOOT_STACK_SIZE };
+ struct stack_info boot_stack = { STACK_TYPE_TASK, (unsigned long)_stack_start,
+ (unsigned long)_stack_end };
unsigned long sp = S390_lowcore.gpregs_save_area[15];
bool first = true;