1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Startup glue code to uncompress the kernel
5 * Copyright IBM Corp. 2010
7 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
10 #include <linux/init.h>
11 #include <linux/linkage.h>
12 #include <asm/asm-offsets.h>
13 #include <asm/thread_info.h>
18 ENTRY(startup_continue)
19 basr %r13,0 # get base
22 lg %r15,.Lstack-.LPG1(%r13)
24 brasl %r14,decompress_kernel
25 # Set up registers for memory mover. We move the decompressed image to
26 # 0x11000, starting at offset 0x11000 in the decompressed image so
27 # that code living at 0x11000 in the image will end up at 0x11000 in
30 lg %r2,.Loffset-.LPG1(%r13)
32 lg %r3,.Lmvsize-.LPG1(%r13)
34 # Move the memory mover someplace safe so it doesn't overwrite itself.
36 mvc 0(mover_end-mover,%r1),mover-.LPG1(%r13)
37 # When the memory mover is done we pass control to
38 # arch/s390/kernel/head64.S:startup_continue which lives at 0x11000 in
39 # the decompressed image.
50 .quad 0x8000 + (1<<(PAGE_SHIFT+THREAD_SIZE_ORDER))