| * Startup glue code to uncompress the kernel |
| * Copyright IBM Corp. 2010 |
| * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> |
| #include <linux/linkage.h> |
| #include <asm/asm-offsets.h> |
| #include <asm/thread_info.h> |
| lg %r15,.Lstack-.LPG1(%r13) |
| brasl %r14,decompress_kernel |
| # Set up registers for memory mover. We move the decompressed image to |
| # 0x11000, starting at offset 0x11000 in the decompressed image so |
| # that code living at 0x11000 in the image will end up at 0x11000 in |
| lg %r2,.Loffset-.LPG1(%r13) |
| lg %r3,.Lmvsize-.LPG1(%r13) |
| # Move the memory mover someplace safe so it doesn't overwrite itself. |
| mvc 0(mover_end-mover,%r1),mover-.LPG1(%r13) |
| # When the memory mover is done we pass control to |
| # arch/s390/kernel/head64.S:startup_continue which lives at 0x11000 in |
| # the decompressed image. |
| .quad 0x8000 + (1<<(PAGE_SHIFT+THREAD_SIZE_ORDER)) |