diff options
Diffstat (limited to 'arch/arm/mm/proc-v7.S')
-rw-r--r-- | arch/arm/mm/proc-v7.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index d1ebec42521d..fc81159596fe 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -95,6 +95,9 @@ ENTRY(cpu_v7_switch_mm) | |||
95 | mov r2, #0 | 95 | mov r2, #0 |
96 | ldr r1, [r1, #MM_CONTEXT_ID] @ get mm->context.id | 96 | ldr r1, [r1, #MM_CONTEXT_ID] @ get mm->context.id |
97 | orr r0, r0, #TTB_FLAGS | 97 | orr r0, r0, #TTB_FLAGS |
98 | #ifdef CONFIG_ARM_ERRATA_430973 | ||
99 | mcr p15, 0, r2, c7, c5, 6 @ flush BTAC/BTB | ||
100 | #endif | ||
98 | mcr p15, 0, r2, c13, c0, 1 @ set reserved context ID | 101 | mcr p15, 0, r2, c13, c0, 1 @ set reserved context ID |
99 | isb | 102 | isb |
100 | 1: mcr p15, 0, r0, c2, c0, 0 @ set TTB 0 | 103 | 1: mcr p15, 0, r0, c2, c0, 0 @ set TTB 0 |
@@ -180,6 +183,11 @@ __v7_setup: | |||
180 | stmia r12, {r0-r5, r7, r9, r11, lr} | 183 | stmia r12, {r0-r5, r7, r9, r11, lr} |
181 | bl v7_flush_dcache_all | 184 | bl v7_flush_dcache_all |
182 | ldmia r12, {r0-r5, r7, r9, r11, lr} | 185 | ldmia r12, {r0-r5, r7, r9, r11, lr} |
186 | #ifdef CONFIG_ARM_ERRATA_430973 | ||
187 | mrc p15, 0, r10, c1, c0, 1 @ read aux control register | ||
188 | orr r10, r10, #(1 << 6) @ set IBE to 1 | ||
189 | mcr p15, 0, r10, c1, c0, 1 @ write aux control register | ||
190 | #endif | ||
183 | mov r10, #0 | 191 | mov r10, #0 |
184 | #ifdef HARVARD_CACHE | 192 | #ifdef HARVARD_CACHE |
185 | mcr p15, 0, r10, c7, c5, 0 @ I+BTB cache invalidate | 193 | mcr p15, 0, r10, c7, c5, 0 @ I+BTB cache invalidate |