diff options
Diffstat (limited to 'arch/s390/kernel/base.S')
-rw-r--r-- | arch/s390/kernel/base.S | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/arch/s390/kernel/base.S b/arch/s390/kernel/base.S index 15e46ca94335..209938c1dfc8 100644 --- a/arch/s390/kernel/base.S +++ b/arch/s390/kernel/base.S | |||
@@ -6,13 +6,13 @@ | |||
6 | * Michael Holzheu <holzheu@de.ibm.com> | 6 | * Michael Holzheu <holzheu@de.ibm.com> |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/linkage.h> | ||
9 | #include <asm/asm-offsets.h> | 10 | #include <asm/asm-offsets.h> |
10 | #include <asm/ptrace.h> | 11 | #include <asm/ptrace.h> |
11 | 12 | ||
12 | #ifdef CONFIG_64BIT | 13 | #ifdef CONFIG_64BIT |
13 | 14 | ||
14 | .globl s390_base_mcck_handler | 15 | ENTRY(s390_base_mcck_handler) |
15 | s390_base_mcck_handler: | ||
16 | basr %r13,0 | 16 | basr %r13,0 |
17 | 0: lg %r15,__LC_PANIC_STACK # load panic stack | 17 | 0: lg %r15,__LC_PANIC_STACK # load panic stack |
18 | aghi %r15,-STACK_FRAME_OVERHEAD | 18 | aghi %r15,-STACK_FRAME_OVERHEAD |
@@ -26,13 +26,13 @@ s390_base_mcck_handler: | |||
26 | lpswe __LC_MCK_OLD_PSW | 26 | lpswe __LC_MCK_OLD_PSW |
27 | 27 | ||
28 | .section .bss | 28 | .section .bss |
29 | .align 8 | ||
29 | .globl s390_base_mcck_handler_fn | 30 | .globl s390_base_mcck_handler_fn |
30 | s390_base_mcck_handler_fn: | 31 | s390_base_mcck_handler_fn: |
31 | .quad 0 | 32 | .quad 0 |
32 | .previous | 33 | .previous |
33 | 34 | ||
34 | .globl s390_base_ext_handler | 35 | ENTRY(s390_base_ext_handler) |
35 | s390_base_ext_handler: | ||
36 | stmg %r0,%r15,__LC_SAVE_AREA | 36 | stmg %r0,%r15,__LC_SAVE_AREA |
37 | basr %r13,0 | 37 | basr %r13,0 |
38 | 0: aghi %r15,-STACK_FRAME_OVERHEAD | 38 | 0: aghi %r15,-STACK_FRAME_OVERHEAD |
@@ -46,13 +46,13 @@ s390_base_ext_handler: | |||
46 | lpswe __LC_EXT_OLD_PSW | 46 | lpswe __LC_EXT_OLD_PSW |
47 | 47 | ||
48 | .section .bss | 48 | .section .bss |
49 | .align 8 | ||
49 | .globl s390_base_ext_handler_fn | 50 | .globl s390_base_ext_handler_fn |
50 | s390_base_ext_handler_fn: | 51 | s390_base_ext_handler_fn: |
51 | .quad 0 | 52 | .quad 0 |
52 | .previous | 53 | .previous |
53 | 54 | ||
54 | .globl s390_base_pgm_handler | 55 | ENTRY(s390_base_pgm_handler) |
55 | s390_base_pgm_handler: | ||
56 | stmg %r0,%r15,__LC_SAVE_AREA | 56 | stmg %r0,%r15,__LC_SAVE_AREA |
57 | basr %r13,0 | 57 | basr %r13,0 |
58 | 0: aghi %r15,-STACK_FRAME_OVERHEAD | 58 | 0: aghi %r15,-STACK_FRAME_OVERHEAD |
@@ -70,6 +70,7 @@ disabled_wait_psw: | |||
70 | .quad 0x0002000180000000,0x0000000000000000 + s390_base_pgm_handler | 70 | .quad 0x0002000180000000,0x0000000000000000 + s390_base_pgm_handler |
71 | 71 | ||
72 | .section .bss | 72 | .section .bss |
73 | .align 8 | ||
73 | .globl s390_base_pgm_handler_fn | 74 | .globl s390_base_pgm_handler_fn |
74 | s390_base_pgm_handler_fn: | 75 | s390_base_pgm_handler_fn: |
75 | .quad 0 | 76 | .quad 0 |
@@ -77,8 +78,7 @@ s390_base_pgm_handler_fn: | |||
77 | 78 | ||
78 | #else /* CONFIG_64BIT */ | 79 | #else /* CONFIG_64BIT */ |
79 | 80 | ||
80 | .globl s390_base_mcck_handler | 81 | ENTRY(s390_base_mcck_handler) |
81 | s390_base_mcck_handler: | ||
82 | basr %r13,0 | 82 | basr %r13,0 |
83 | 0: l %r15,__LC_PANIC_STACK # load panic stack | 83 | 0: l %r15,__LC_PANIC_STACK # load panic stack |
84 | ahi %r15,-STACK_FRAME_OVERHEAD | 84 | ahi %r15,-STACK_FRAME_OVERHEAD |
@@ -93,13 +93,13 @@ s390_base_mcck_handler: | |||
93 | 2: .long s390_base_mcck_handler_fn | 93 | 2: .long s390_base_mcck_handler_fn |
94 | 94 | ||
95 | .section .bss | 95 | .section .bss |
96 | .align 4 | ||
96 | .globl s390_base_mcck_handler_fn | 97 | .globl s390_base_mcck_handler_fn |
97 | s390_base_mcck_handler_fn: | 98 | s390_base_mcck_handler_fn: |
98 | .long 0 | 99 | .long 0 |
99 | .previous | 100 | .previous |
100 | 101 | ||
101 | .globl s390_base_ext_handler | 102 | ENTRY(s390_base_ext_handler) |
102 | s390_base_ext_handler: | ||
103 | stm %r0,%r15,__LC_SAVE_AREA | 103 | stm %r0,%r15,__LC_SAVE_AREA |
104 | basr %r13,0 | 104 | basr %r13,0 |
105 | 0: ahi %r15,-STACK_FRAME_OVERHEAD | 105 | 0: ahi %r15,-STACK_FRAME_OVERHEAD |
@@ -115,13 +115,13 @@ s390_base_ext_handler: | |||
115 | 2: .long s390_base_ext_handler_fn | 115 | 2: .long s390_base_ext_handler_fn |
116 | 116 | ||
117 | .section .bss | 117 | .section .bss |
118 | .align 4 | ||
118 | .globl s390_base_ext_handler_fn | 119 | .globl s390_base_ext_handler_fn |
119 | s390_base_ext_handler_fn: | 120 | s390_base_ext_handler_fn: |
120 | .long 0 | 121 | .long 0 |
121 | .previous | 122 | .previous |
122 | 123 | ||
123 | .globl s390_base_pgm_handler | 124 | ENTRY(s390_base_pgm_handler) |
124 | s390_base_pgm_handler: | ||
125 | stm %r0,%r15,__LC_SAVE_AREA | 125 | stm %r0,%r15,__LC_SAVE_AREA |
126 | basr %r13,0 | 126 | basr %r13,0 |
127 | 0: ahi %r15,-STACK_FRAME_OVERHEAD | 127 | 0: ahi %r15,-STACK_FRAME_OVERHEAD |
@@ -142,6 +142,7 @@ disabled_wait_psw: | |||
142 | .long 0x000a0000,0x00000000 + s390_base_pgm_handler | 142 | .long 0x000a0000,0x00000000 + s390_base_pgm_handler |
143 | 143 | ||
144 | .section .bss | 144 | .section .bss |
145 | .align 4 | ||
145 | .globl s390_base_pgm_handler_fn | 146 | .globl s390_base_pgm_handler_fn |
146 | s390_base_pgm_handler_fn: | 147 | s390_base_pgm_handler_fn: |
147 | .long 0 | 148 | .long 0 |