]> 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)
commit81336dba2d2b78204814c074743f1765cc65f19c
treeaa4e609c90c455d2d282948263ea8b4353331f58
parentea0c71dd1c398f8449782045104d5b65321ee69d
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