s390/boot: Do not assume the decompressor range is reserved
authorAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 17 Jul 2024 19:43:22 +0000 (21:43 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 23 Jul 2024 14:02:30 +0000 (16:02 +0200)
commitb798b685b42c9dbe508e59a74250d97c41bec35e
tree75332f55a630136079f9d63573af3465c96bce76
parente6ce1f12d777f6ee22b20e10ae6a771e7e6f44f5
s390/boot: Do not assume the decompressor range is reserved

When allocating a random memory range for .amode31 sections
the minimal randomization address is 0. That does not lead
to a possible overlap with the decompressor image (which also
starts from 0) since by that time the image range is already
reserved.

Do not assume the decompressor range is reserved and always
provide the minimal randomization address for .amode31
sections beyond the decompressor. That is a prerequisite
for moving the lowcore memory address from NULL elsewhere.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/startup.c