diff options
author | Will Deacon <will.deacon@arm.com> | 2011-06-06 13:27:34 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-07-07 20:20:53 +0200 |
commit | f4daf06fc23b99df5ca5b3e892428b91e148cc52 (patch) | |
tree | 25d034cbf3109c03d33b404d1d910f64ee048629 /arch/arm/mm/proc-v7.S | |
parent | ARM: perf: add support for the Cortex-A15 PMU (diff) | |
download | linux-f4daf06fc23b99df5ca5b3e892428b91e148cc52.tar.xz linux-f4daf06fc23b99df5ca5b3e892428b91e148cc52.zip |
ARM: proc: add definition of cpu_reset for ARMv6 and ARMv7 cores
This patch adds simple definitions of cpu_reset for ARMv6 and ARMv7
cores, which disable the MMU via the SCTLR.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mm/proc-v7.S')
-rw-r--r-- | arch/arm/mm/proc-v7.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 593285419e75..54d1a63517c5 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S @@ -58,9 +58,16 @@ ENDPROC(cpu_v7_proc_fin) * to what would be the reset vector. * * - loc - location to jump to for soft reset + * + * This code must be executed using a flat identity mapping with + * caches disabled. */ .align 5 ENTRY(cpu_v7_reset) + mrc p15, 0, r1, c1, c0, 0 @ ctrl register + bic r1, r1, #0x1 @ ...............m + mcr p15, 0, r1, c1, c0, 0 @ disable MMU + isb mov pc, r0 ENDPROC(cpu_v7_reset) |