Skip to content

Commit

Permalink
parisc: Move common_stext into .text section when CONFIG_HOTPLUG_CPU=y
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hdeller committed Mar 29, 2022
1 parent 9890368 commit ca45ec3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions arch/parisc/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -371,8 +380,6 @@ smp_slave_stext:
.procend
#endif /* CONFIG_SMP */

ENDPROC(parisc_kernel_start)

#ifndef CONFIG_64BIT
.section .data..ro_after_init

Expand Down

0 comments on commit ca45ec3

Please sign in to comment.