aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/boot/startup.c
diff options
context:
space:
mode:
authorAlexander Egorenkov <egorenar@linux.ibm.com>2020-09-02 16:52:06 +0200
committerVasily Gorbik <gor@linux.ibm.com>2020-09-16 14:08:47 +0200
commit980d5f9ab36b6cfe473a8371a7e11bd168c9e630 (patch)
tree21dd7162377841d3068d014d931ab511dd6f0430 /arch/s390/boot/startup.c
parents390/uv: add destroy page call (diff)
downloadlinux-dev-980d5f9ab36b6cfe473a8371a7e11bd168c9e630.tar.xz
linux-dev-980d5f9ab36b6cfe473a8371a7e11bd168c9e630.zip
s390/boot: enable .bss section for compressed kernel
- Support static uninitialized variables in compressed kernel. - Remove chkbss script - Get rid of workarounds for not having .bss section Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/startup.c')
-rw-r--r--arch/s390/boot/startup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c
index 3b3a11f95269..81835483169b 100644
--- a/arch/s390/boot/startup.c
+++ b/arch/s390/boot/startup.c
@@ -120,6 +120,9 @@ static void handle_relocs(unsigned long offset)
}
}
+/*
+ * This function clears the BSS section of the decompressed Linux kernel and NOT the decompressor's.
+ */
static void clear_bss_section(void)
{
memset((void *)vmlinux.default_lma + vmlinux.image_size, 0, vmlinux.bss_size);