Path: blob/master/arch/s390/boot/compressed/head31.S
15126 views
/*1* Startup glue code to uncompress the kernel2*3* Copyright IBM Corp. 20104*5* Author(s): Martin Schwidefsky <[email protected]>6*/78#include <linux/init.h>9#include <asm/asm-offsets.h>10#include <asm/thread_info.h>11#include <asm/page.h>12#include "sizes.h"1314__HEAD15.globl startup_continue16startup_continue:17basr %r13,0 # get base18.LPG1:19# setup stack20l %r15,.Lstack-.LPG1(%r13)21ahi %r15,-9622l %r1,.Ldecompress-.LPG1(%r13)23basr %r14,%r124# setup registers for memory mover & branch to target25lr %r4,%r226l %r2,.Loffset-.LPG1(%r13)27la %r4,0(%r2,%r4)28l %r3,.Lmvsize-.LPG1(%r13)29lr %r5,%r330# move the memory mover someplace safe31la %r1,0x20032mvc 0(mover_end-mover,%r1),mover-.LPG1(%r13)33# decompress image is started at 0x1100034lr %r6,%r235br %r136mover:37mvcle %r2,%r4,038jo mover39br %r640mover_end:4142.align 843.Lstack:44.long 0x8000 + (1<<(PAGE_SHIFT+THREAD_ORDER))45.Ldecompress:46.long decompress_kernel47.Loffset:48.long 0x1100049.Lmvsize:50.long SZ__bss_start515253