]> git.baikalelectronics.ru Git - kernel.git/commit
s390/boot: make stacks part of the decompressor's image
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Wed, 30 Jun 2021 15:17:53 +0000 (17:17 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jul 2021 07:39:13 +0000 (09:39 +0200)
commit184b17dd46cbbde7aa0999cc46c299934aaf4408
treeaa4e609c90c455d2d282948263ea8b4353331f58
parenta2877c13f11d3b30519d9eba77c5ce5e698d5398
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>
arch/s390/boot/boot.h
arch/s390/boot/compressed/vmlinux.lds.S
arch/s390/boot/head.S
arch/s390/boot/pgm_check_info.c