diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-27 19:20:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-27 19:20:17 -0500 |
commit | 7981164791d18d5ed1dcdfa9598949ed158a5333 (patch) | |
tree | 6565e7406dd55eb5014efd3e54109159a47cb10e /arch/s390/boot/compressed/head64.S | |
parent | f1dd6ad599732fc89f36fdd65a2c2cf3c63a8711 (diff) | |
parent | a8d6356cdabf4495aaae7d3e89eb058b1909761c (diff) |
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (35 commits)
[S390] time: remove unused code
[S390] zcore: Add prefix registers to dump header
[S390] correct vdso version string
[S390] add support for compressed kernels
[S390] Define new s390 ELF note sections in elf.h
[S390] codepage conversion of kernel parameter line
[S390] seq_file: convert drivers/s390/
[S390] add z9-ec/z10 instruction to kernel disassembler
[S390] dasd: correct offline processing
[S390] dasd: fix refcounting.
[S390] dasd: fix online/offline race
[S390] use kprobes_built_in() in mm/fault code
[S390] bug: use relative pointers in bug table entries
[S390] Cleanup struct _lowcore usage and defines.
[S390] free_initmem: reduce code duplication
[S390] Replace ENOTSUPP usage with EOPNOTSUPP
[S390] spinlock: check virtual cpu running status
[S390] sysinfo: fix SYSIB 3,2,2 structure
[S390] add MACHINE_IS_LPAR flag
[S390] qdio: optimize cache line usage of struct qdio_irq
...
Diffstat (limited to 'arch/s390/boot/compressed/head64.S')
-rw-r--r-- | arch/s390/boot/compressed/head64.S | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/s390/boot/compressed/head64.S b/arch/s390/boot/compressed/head64.S new file mode 100644 index 000000000000..2982cb140550 --- /dev/null +++ b/arch/s390/boot/compressed/head64.S | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * Startup glue code to uncompress the kernel | ||
3 | * | ||
4 | * Copyright IBM Corp. 2010 | ||
5 | * | ||
6 | * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> | ||
7 | */ | ||
8 | |||
9 | #include <linux/init.h> | ||
10 | #include <asm/asm-offsets.h> | ||
11 | #include <asm/thread_info.h> | ||
12 | #include <asm/page.h> | ||
13 | #include "sizes.h" | ||
14 | |||
15 | __HEAD | ||
16 | .globl startup_continue | ||
17 | startup_continue: | ||
18 | basr %r13,0 # get base | ||
19 | .LPG1: | ||
20 | # setup stack | ||
21 | lg %r15,.Lstack-.LPG1(%r13) | ||
22 | aghi %r15,-160 | ||
23 | brasl %r14,decompress_kernel | ||
24 | # setup registers for memory mover & branch to target | ||
25 | lgr %r4,%r2 | ||
26 | lg %r2,.Loffset-.LPG1(%r13) | ||
27 | la %r4,0(%r2,%r4) | ||
28 | lg %r3,.Lmvsize-.LPG1(%r13) | ||
29 | lgr %r5,%r3 | ||
30 | # move the memory mover someplace safe | ||
31 | la %r1,0x200 | ||
32 | mvc 0(mover_end-mover,%r1),mover-.LPG1(%r13) | ||
33 | # decompress image is started at 0x11000 | ||
34 | lgr %r6,%r2 | ||
35 | br %r1 | ||
36 | mover: | ||
37 | mvcle %r2,%r4,0 | ||
38 | jo mover | ||
39 | br %r6 | ||
40 | mover_end: | ||
41 | |||
42 | .align 8 | ||
43 | .Lstack: | ||
44 | .quad 0x8000 + (1<<(PAGE_SHIFT+THREAD_ORDER)) | ||
45 | .Loffset: | ||
46 | .quad 0x11000 | ||
47 | .Lmvsize: | ||
48 | .quad SZ__bss_start | ||