projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1972ef
)
[ARM] 3024/1: Add cpu_v6_proc_fin
author
Tony Lindgren
<
[email protected]
>
Wed, 19 Oct 2005 22:00:56 +0000
(23:00 +0100)
committer
Russell King
<
[email protected]
>
Wed, 19 Oct 2005 22:00:56 +0000
(23:00 +0100)
Patch from Tony Lindgren
Machine restart calls cpu_proc_fin() to clean and disable
cache, and turn off interrupts. This patch adds proper
cpu_v6_proc_fin.
Signed-off-by: Tony Lindgren <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
arch/arm/mm/proc-v6.S
patch
|
blob
|
history
diff --git
a/arch/arm/mm/proc-v6.S
b/arch/arm/mm/proc-v6.S
index caf3b19b167ffbfbc0d1676644974aadfd9e943a..9bb5fff406fb73b094dc3c674d9c45e3b026a0f4 100644
(file)
--- a/
arch/arm/mm/proc-v6.S
+++ b/
arch/arm/mm/proc-v6.S
@@
-55,7
+55,14
@@
ENTRY(cpu_v6_proc_init)
mov pc, lr
ENTRY(cpu_v6_proc_fin)
- mov pc, lr
+ stmfd sp!, {lr}
+ cpsid if @ disable interrupts
+ bl v6_flush_kern_cache_all
+ mrc p15, 0, r0, c1, c0, 0 @ ctrl register
+ bic r0, r0, #0x1000 @ ...i............
+ bic r0, r0, #0x0006 @ .............ca.
+ mcr p15, 0, r0, c1, c0, 0 @ disable caches
+ ldmfd sp!, {pc}
/*
* cpu_v6_reset(loc)