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 l %r15,.Lstack-.LPG1(%r13)
23 l %r1,.Ldecompress-.LPG1(%r13)
25 # setup registers for memory mover & branch to target
27 l %r2,.Loffset-.LPG1(%r13)
29 l %r3,.Lmvsize-.LPG1(%r13)
31 # move the memory mover someplace safe
33 mvc 0(mover_end-mover,%r1),mover-.LPG1(%r13)
34 # decompress image is started at 0x11000
45 .long 0x8000 + (1<<(PAGE_SHIFT+THREAD_ORDER))
47 .long decompress_kernel