parisc: Move common_stext into .text section when CONFIG_HOTPLUG_CPU=y
authorHelge Deller <deller@gmx.de>
Fri, 25 Mar 2022 13:22:57 +0000 (14:22 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 29 Mar 2022 19:37:12 +0000 (21:37 +0200)
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>
arch/parisc/kernel/head.S

index b24f777..e0a9e96 100644 (file)
@@ -162,6 +162,15 @@ $pgt_fill_loop:
        /* FALLTHROUGH */
        .procend
 
+#ifdef CONFIG_HOTPLUG_CPU
+       /* common_stext is far away in another section... jump there */
+       load32          PA(common_stext), %rp
+       bv,n            (%rp)
+
+       /* common_stext and smp_slave_stext needs to be in text section */
+       .text
+#endif
+
        /*
        ** Code Common to both Monarch and Slave processors.
        ** Entry:
@@ -371,8 +380,6 @@ smp_slave_stext:
        .procend
 #endif /* CONFIG_SMP */
 
-ENDPROC(parisc_kernel_start)
-
 #ifndef CONFIG_64BIT
        .section .data..ro_after_init