1
2
3
4
5
6
7
8
9
10
11#include <linux/init.h>
12#include <linux/linkage.h>
13#include <asm/asm-offsets.h>
14#include <asm/thread_info.h>
15#include <asm/page.h>
16
17__HEAD
18ENTRY(startup_continue)
19 larl %r1,sched_clock_base_cc
20 mvc 0(8,%r1),__LC_LAST_UPDATE_CLOCK
21 larl %r13,.LPG1
22 lctlg %c0,%c15,.Lctl-.LPG1(%r13)
23 lg %r12,.Lparmaddr-.LPG1(%r13)
24
25 lghi %r0,__LC_PASTE
26 stg %r0,__LC_VDSO_PER_CPU
27
28
29
30 larl %r15,init_thread_union
31 stg %r15,__LC_THREAD_INFO
32 lg %r14,__TI_task(%r15)
33 stg %r14,__LC_CURRENT
34 aghi %r15,1<<(PAGE_SHIFT+THREAD_ORDER)
35 stg %r15,__LC_KERNEL_STACK
36 aghi %r15,-160
37
38
39
40
41 brasl %r14,startup_init
42 lpswe .Lentry-.LPG1(13)
43
44 .align 16
45.LPG1:
46.Lentry:.quad 0x0000000180000000,_stext
47.Lctl: .quad 0x04040000
48 .quad 0
49 .quad .Lduct
50 .quad 0
51 .quad 0
52 .quad .Lduct
53 .quad 0
54 .quad 0
55 .quad 0
56 .quad 0
57 .quad 0
58 .quad 0
59 .quad 0
60 .quad 0
61 .quad 0xc0000000
62 .quad 0
63.Lpcmsk:.quad 0x0000000180000000
64.L4malign:.quad 0xffffffffffc00000
65.Lscan2g:.quad 0x80000000 + 0x20000 - 8
66.Lnop: .long 0x07000700
67.Lparmaddr:
68 .quad PARMAREA
69 .align 64
70.Lduct: .long 0,0,0,0,.Lduald,0,0,0
71 .long 0,0,0,0,0,0,0,0
72 .align 128
73.Lduald:.rept 8
74 .long 0x80000000,0,0,0
75 .endr
76
77ENTRY(_ehead)
78
79 .org 0x100000 - 0x11000
80
81
82
83ENTRY(_stext)
84 basr %r13,0
85.LPG3:
86
87 stctg %c0,%c15,0(%r15)
88 oi 6(%r15),0x60
89 oi 4(%r15),0x10
90 lctlg %c0,%c15,0(%r15)
91
92 lam 0,15,.Laregs-.LPG3(%r13)
93 brasl %r14,start_kernel
94
95
96
97 basr %r13,0
98 lpswe .Ldw-.(%r13)
99
100 .align 8
101.Ldw: .quad 0x0002000180000000,0x0000000000000000
102.Laregs:.long 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
103