summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/proc-arm9tdmi.S
diff options
context:
space:
mode:
authorWill Deacon2011-11-15 14:25:04 +0100
committerWill Deacon2011-12-06 15:04:14 +0100
commit1a4baafa7d203da1cceb302c2df38f0fea1c17a1 (patch)
treef64d1b22be6f3255ccb73470a9799890972bd670 /arch/arm/mm/proc-arm9tdmi.S
parentARM: suspend: use idmap_pgd instead of suspend_pgd (diff)
downloadkernel-qcow2-linux-1a4baafa7d203da1cceb302c2df38f0fea1c17a1.tar.gz
kernel-qcow2-linux-1a4baafa7d203da1cceb302c2df38f0fea1c17a1.tar.xz
kernel-qcow2-linux-1a4baafa7d203da1cceb302c2df38f0fea1c17a1.zip
ARM: proc-*.S: place cpu_reset functions into .idmap.text section
The CPU reset functions disable the MMU and therefore must be executed with an identity mapping in place. This patch places the CPU reset functions into the .idmap.text section, causing the idmap code to include them as part of the identity mapping. Acked-by: Dave Martin <dave.martin@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mm/proc-arm9tdmi.S')
-rw-r--r--arch/arm/mm/proc-arm9tdmi.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mm/proc-arm9tdmi.S b/arch/arm/mm/proc-arm9tdmi.S
index 2120f9e2af7f..8881391dfb9e 100644
--- a/arch/arm/mm/proc-arm9tdmi.S
+++ b/arch/arm/mm/proc-arm9tdmi.S
@@ -45,8 +45,11 @@ ENTRY(cpu_arm9tdmi_proc_fin)
* Params : loc(r0) address to jump to
* Purpose : Sets up everything for a reset and jump to the location for soft reset.
*/
+ .pushsection .idmap.text, "ax"
ENTRY(cpu_arm9tdmi_reset)
mov pc, r0
+ENDPROC(cpu_arm9tdmi_reset)
+ .popsection
__CPUINIT