]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8324/1: move cpu_resume() to .text section
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 25 Mar 2015 06:39:21 +0000 (07:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Mar 2015 22:11:57 +0000 (23:11 +0100)
commit7c4d1a976d212bc6b7fa26bb4570a5f96319b4e1
tree79bba874404434298a52db4e494b2bafa8dcb4f3
parent22f09c2f0961d3605fa087346cb14071951fc865
ARM: 8324/1: move cpu_resume() to .text section

Move cpu_resume() to the .text section where it belongs. Change
the adr reference to sleep_save_sp to an explicit PC relative
reference so sleep_save_sp itself can remain in .data.

This helps prevent linker failure on large kernels, as the code
in the .data section may be too far away to be in range for normal
b/bl instructions.

Reviewed-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/sleep.S