s390/boot: allocate amode31 section in decompressor
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 27 Sep 2021 12:18:26 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:56 +0000 (16:34 +0200)
commit6ed826c949cf3cb38aba063a55be260d52c0ce55
tree9e3d6ca387921a1b4c9132046538fc24e8e06147
parentaa1f19606558a26086d2dd71a8ffc1327ccd451e
s390/boot: allocate amode31 section in decompressor

[ Upstream commit e3ec8e0f5711d73f7e5d5c3cffdf4fad4f1487b9 ]

The memory for amode31 section is allocated from the decompressed
kernel. Instead, allocate that memory from the decompressor. This
is a prerequisite to allow initialization of the virtual memory
before the decompressed kernel takes over.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/boot/compressed/decompressor.h
arch/s390/boot/startup.c
arch/s390/kernel/entry.h
arch/s390/kernel/setup.c
arch/s390/kernel/vmlinux.lds.S