summaryrefslogtreecommitdiff
path: root/arch/s390/boot/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/boot/startup.c')
-rw-r--r--arch/s390/boot/startup.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/s390/boot/startup.c b/arch/s390/boot/startup.c
index 2a9ce355f8e6..474dee84d8a8 100644
--- a/arch/s390/boot/startup.c
+++ b/arch/s390/boot/startup.c
@@ -5,13 +5,11 @@
void startup_kernel(void)
{
- void (*startup_continue)(void) = (void *)0x100000;
- unsigned long uncompressed_size;
- void *uncompressed_img;
+ void *img;
if (!IS_ENABLED(CONFIG_KERNEL_UNCOMPRESSED)) {
- uncompressed_img = decompress_kernel(&uncompressed_size);
- memmove(startup_continue, uncompressed_img, uncompressed_size);
+ img = decompress_kernel();
+ memmove((void *)vmlinux.default_lma, img, vmlinux.image_size);
}
- startup_continue();
+ vmlinux.entry();
}