ARM: 8607/1: V7M: Wire up caches for V7M processors with cache support.
This patch does the plumbing required to invoke the V7M cache code added in earlier patches in this series, although there is no users for that yet. In order to honour the I/D cache disable config options, this patch changes the mechanism by which the CCR is set on boot, to be more like V7A/R. Signed-off-by: Jonathan Austin <jonathan.austin@arm.com> Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Tested-by: Andras Szemzo <sza@esh.hu> Tested-by: Joachim Eastwood <manabian@gmail.com> Tested-by: Alexandre TORGUE <alexandre.torgue@st.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Цей коміт міститься в:

зафіксовано
Russell King

джерело
9a1af5f220
коміт
bc0ee9d24a
@@ -158,7 +158,21 @@ __after_proc_init:
|
||||
bic r0, r0, #CR_V
|
||||
#endif
|
||||
mcr p15, 0, r0, c1, c0, 0 @ write control reg
|
||||
#endif /* CONFIG_CPU_CP15 */
|
||||
#elif defined (CONFIG_CPU_V7M)
|
||||
/* For V7M systems we want to modify the CCR similarly to the SCTLR */
|
||||
#ifdef CONFIG_CPU_DCACHE_DISABLE
|
||||
bic r0, r0, #V7M_SCB_CCR_DC
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_BPREDICT_DISABLE
|
||||
bic r0, r0, #V7M_SCB_CCR_BP
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_ICACHE_DISABLE
|
||||
bic r0, r0, #V7M_SCB_CCR_IC
|
||||
#endif
|
||||
movw r3, #:lower16:(BASEADDR_V7M_SCB + V7M_SCB_CCR)
|
||||
movt r3, #:upper16:(BASEADDR_V7M_SCB + V7M_SCB_CCR)
|
||||
str r0, [r3]
|
||||
#endif /* CONFIG_CPU_CP15 elif CONFIG_CPU_V7M */
|
||||
ret lr
|
||||
ENDPROC(__after_proc_init)
|
||||
.ltorg
|
||||
|
Посилання в новій задачі
Заблокувати користувача