]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: mach-imx: move early resume code out of the .data section
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 19 Feb 2013 04:11:30 +0000 (23:11 -0500)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 4 Mar 2013 01:20:09 +0000 (09:20 +0800)
commit924f6a775c50e94fbec255f0bc6ed6f80b8035be
treed35becb2f01f88da2249d07e8e4758f34c07fcfd
parent5d5acf7f3e8c669857f1288b923731e4b4ceb550
ARM: mach-imx: move early resume code out of the .data section

Building the kernel with allyesconfig fails because the i.mx early
resume code located in the .data section is unable to fixup the bl
relocation as the branch target gets too far away.

The idea of having code in the .data section allows for easy access to
nearby data using relative addressing while the MMU is off. However it
is probably best to move the code back to the .text section where it
belongs and fixup the data access instead.  This solves the bl reloc
issue (at least until this becomes a general problem) and simplifies
the code as well.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/headsmp.S
arch/arm/mach-imx/pm-imx6q.c