Skip to content

Commit ca45ec3

Browse files
committed
parisc: Move common_stext into .text section when CONFIG_HOTPLUG_CPU=y
Move the common_stext function into the non-init text section if hotplug is enabled. This function is called from the firmware when hotplugged CPUs are brought up. Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 9890368 commit ca45ec3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

arch/parisc/kernel/head.S

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ $pgt_fill_loop:
162162
/* FALLTHROUGH */
163163
.procend
164164

165+
#ifdef CONFIG_HOTPLUG_CPU
166+
/* common_stext is far away in another section... jump there */
167+
load32 PA(common_stext), %rp
168+
bv,n (%rp)
169+
170+
/* common_stext and smp_slave_stext needs to be in text section */
171+
.text
172+
#endif
173+
165174
/*
166175
** Code Common to both Monarch and Slave processors.
167176
** Entry:
@@ -371,8 +380,6 @@ smp_slave_stext:
371380
.procend
372381
#endif /* CONFIG_SMP */
373382

374-
ENDPROC(parisc_kernel_start)
375-
376383
#ifndef CONFIG_64BIT
377384
.section .data..ro_after_init
378385

0 commit comments

Comments
 (0)