2 * Startup glue code to uncompress the kernel
4 * Copyright IBM Corp. 2010
6 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
9 #include <linux/init.h>
10 #include <linux/linkage.h>
11 #include <asm/asm-offsets.h>
12 #include <asm/thread_info.h>
17 ENTRY(startup_continue)
18 basr %r13,0 # get base
21 lg %r15,.Lstack-.LPG1(%r13)
23 brasl %r14,decompress_kernel
24 # setup registers for memory mover & branch to target
26 lg %r2,.Loffset-.LPG1(%r13)
28 lg %r3,.Lmvsize-.LPG1(%r13)
30 # move the memory mover someplace safe
32 mvc 0(mover_end-mover,%r1),mover-.LPG1(%r13)
33 # decompress image is started at 0x11000
44 .quad 0x8000 + (1<<(PAGE_SHIFT+THREAD_ORDER))