diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-04 12:39:20 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-08 05:07:33 -0400 |
commit | c083c6609b290a650894f846270a9233401adc22 (patch) | |
tree | 5f01a7b4ed5c551ce40a9ceeadc909ba740bbe9a /arch/arm/kernel/head-common.S | |
parent | 17bb5e2c1706c7296eec96e97be0d760e59f282c (diff) |
ARM: hotplug cpu: move __error and __error_p to cpuinit section
__error and __error_p may be used by secondary CPUs, so these
need to be in the cpuinit section.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/head-common.S')
-rw-r--r-- | arch/arm/kernel/head-common.S | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S index 24dfa14b0bf9..7c6f9ab47b95 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S | |||
@@ -24,21 +24,6 @@ | |||
24 | * and hope for the best (useful if bootloader fails to pass a proper | 24 | * and hope for the best (useful if bootloader fails to pass a proper |
25 | * machine ID for example). | 25 | * machine ID for example). |
26 | */ | 26 | */ |
27 | __error_p: | ||
28 | #ifdef CONFIG_DEBUG_LL | ||
29 | adr r0, str_p1 | ||
30 | bl printascii | ||
31 | mov r0, r9 | ||
32 | bl printhex8 | ||
33 | adr r0, str_p2 | ||
34 | bl printascii | ||
35 | b __error | ||
36 | str_p1: .asciz "\nError: unrecognized/unsupported processor variant (0x" | ||
37 | str_p2: .asciz ").\n" | ||
38 | .align | ||
39 | #endif | ||
40 | ENDPROC(__error_p) | ||
41 | |||
42 | __error_a: | 27 | __error_a: |
43 | #ifdef CONFIG_DEBUG_LL | 28 | #ifdef CONFIG_DEBUG_LL |
44 | mov r4, r1 @ preserve machine ID | 29 | mov r4, r1 @ preserve machine ID |
@@ -76,25 +61,6 @@ str_a3: .asciz "\nPlease check your kernel config and/or bootloader.\n" | |||
76 | .align | 61 | .align |
77 | #endif | 62 | #endif |
78 | 63 | ||
79 | __error: | ||
80 | #ifdef CONFIG_ARCH_RPC | ||
81 | /* | ||
82 | * Turn the screen red on a error - RiscPC only. | ||
83 | */ | ||
84 | mov r0, #0x02000000 | ||
85 | mov r3, #0x11 | ||
86 | orr r3, r3, r3, lsl #8 | ||
87 | orr r3, r3, r3, lsl #16 | ||
88 | str r3, [r0], #4 | ||
89 | str r3, [r0], #4 | ||
90 | str r3, [r0], #4 | ||
91 | str r3, [r0], #4 | ||
92 | #endif | ||
93 | 1: mov r0, r0 | ||
94 | b 1b | ||
95 | ENDPROC(__error) | ||
96 | |||
97 | |||
98 | /* | 64 | /* |
99 | * Look in <asm/procinfo.h> and arch/arm/kernel/arch.[ch] for | 65 | * Look in <asm/procinfo.h> and arch/arm/kernel/arch.[ch] for |
100 | * more information about the __proc_info and __arch_info structures. | 66 | * more information about the __proc_info and __arch_info structures. |
@@ -275,3 +241,36 @@ __lookup_processor_type_data: | |||
275 | .long __proc_info_begin | 241 | .long __proc_info_begin |
276 | .long __proc_info_end | 242 | .long __proc_info_end |
277 | .size __lookup_processor_type_data, . - __lookup_processor_type_data | 243 | .size __lookup_processor_type_data, . - __lookup_processor_type_data |
244 | |||
245 | __error_p: | ||
246 | #ifdef CONFIG_DEBUG_LL | ||
247 | adr r0, str_p1 | ||
248 | bl printascii | ||
249 | mov r0, r9 | ||
250 | bl printhex8 | ||
251 | adr r0, str_p2 | ||
252 | bl printascii | ||
253 | b __error | ||
254 | str_p1: .asciz "\nError: unrecognized/unsupported processor variant (0x" | ||
255 | str_p2: .asciz ").\n" | ||
256 | .align | ||
257 | #endif | ||
258 | ENDPROC(__error_p) | ||
259 | |||
260 | __error: | ||
261 | #ifdef CONFIG_ARCH_RPC | ||
262 | /* | ||
263 | * Turn the screen red on a error - RiscPC only. | ||
264 | */ | ||
265 | mov r0, #0x02000000 | ||
266 | mov r3, #0x11 | ||
267 | orr r3, r3, r3, lsl #8 | ||
268 | orr r3, r3, r3, lsl #16 | ||
269 | str r3, [r0], #4 | ||
270 | str r3, [r0], #4 | ||
271 | str r3, [r0], #4 | ||
272 | str r3, [r0], #4 | ||
273 | #endif | ||
274 | 1: mov r0, r0 | ||
275 | b 1b | ||
276 | ENDPROC(__error) | ||