diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-02 19:40:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-02 19:40:20 -0400 |
commit | 2142babac999a5ba169348892a8e3ac222bec7a4 (patch) | |
tree | eb862396a9864b34e2335b7cc0c6114c56f9ec1a /arch/arm/mm/proc-v7.S | |
parent | bb402c4fb5bba4edf5b8c72b3db8760e60df4876 (diff) | |
parent | 0516e4643cd22fc9f535aef02ad1de66c382c93b (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm: (45 commits)
[ARM] 5489/1: ARM errata: Data written to the L2 cache can be overwritten with stale data
[ARM] 5490/1: ARM errata: Processor deadlock when a false hazard is created
[ARM] 5487/1: ARM errata: Stale prediction on replaced interworking branch
[ARM] 5488/1: ARM errata: Invalidation of the Instruction Cache operation can fail
davinci: DM644x: NAND: update partitioning
davinci: update DM644x support in preparation for more SoCs
davinci: DM644x: rename board file
davinci: update pin-multiplexing support
davinci: serial: generalize for more SoCs
davinci: DM355 IRQ Definitions
davinci: DM646x: add interrupt number and priorities
davinci: PSC: Clear bits in MDCTL reg before setting new bits
davinci: gpio bugfixes
davinci: add EDMA driver
davinci: timers: use clk_get_rate()
[ARM] pxa/littleton: add missing da9034 touchscreen support
[ARM] pxa/zylonite: configure GPIO18/19 correctly, used by 2 GPIO expanders
[ARM] pxa/zylonite: fix the issue of unused SDATA_IN_1 pin get AC97 not working
[ARM] pxa: make ads7846 on corgi and spitz to sync on HSYNC
[ARM] pxa: remove unused CPU_FREQ_PXA Kconfig symbol
...
Diffstat (limited to 'arch/arm/mm/proc-v7.S')
-rw-r--r-- | arch/arm/mm/proc-v7.S | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index c221e26ac1d3..3397f1e64d76 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -96,6 +96,9 @@ ENTRY(cpu_v7_switch_mm) | |||
96 | mov r2, #0 | 96 | mov r2, #0 |
97 | ldr r1, [r1, #MM_CONTEXT_ID] @ get mm->context.id | 97 | ldr r1, [r1, #MM_CONTEXT_ID] @ get mm->context.id |
98 | orr r0, r0, #TTB_FLAGS | 98 | orr r0, r0, #TTB_FLAGS |
99 | #ifdef CONFIG_ARM_ERRATA_430973 | ||
100 | mcr p15, 0, r2, c7, c5, 6 @ flush BTAC/BTB | ||
101 | #endif | ||
99 | mcr p15, 0, r2, c13, c0, 1 @ set reserved context ID | 102 | mcr p15, 0, r2, c13, c0, 1 @ set reserved context ID |
100 | isb | 103 | isb |
101 | 1: mcr p15, 0, r0, c2, c0, 0 @ set TTB 0 | 104 | 1: mcr p15, 0, r0, c2, c0, 0 @ set TTB 0 |
@@ -181,6 +184,22 @@ __v7_setup: | |||
181 | stmia r12, {r0-r5, r7, r9, r11, lr} | 184 | stmia r12, {r0-r5, r7, r9, r11, lr} |
182 | bl v7_flush_dcache_all | 185 | bl v7_flush_dcache_all |
183 | ldmia r12, {r0-r5, r7, r9, r11, lr} | 186 | ldmia r12, {r0-r5, r7, r9, r11, lr} |
187 | #ifdef CONFIG_ARM_ERRATA_430973 | ||
188 | mrc p15, 0, r10, c1, c0, 1 @ read aux control register | ||
189 | orr r10, r10, #(1 << 6) @ set IBE to 1 | ||
190 | mcr p15, 0, r10, c1, c0, 1 @ write aux control register | ||
191 | #endif | ||
192 | #ifdef CONFIG_ARM_ERRATA_458693 | ||
193 | mrc p15, 0, r10, c1, c0, 1 @ read aux control register | ||
194 | orr r10, r10, #(1 << 5) @ set L1NEON to 1 | ||
195 | orr r10, r10, #(1 << 9) @ set PLDNOP to 1 | ||
196 | mcr p15, 0, r10, c1, c0, 1 @ write aux control register | ||
197 | #endif | ||
198 | #ifdef CONFIG_ARM_ERRATA_460075 | ||
199 | mrc p15, 1, r10, c9, c0, 2 @ read L2 cache aux ctrl register | ||
200 | orr r10, r10, #(1 << 22) @ set the Write Allocate disable bit | ||
201 | mcr p15, 1, r10, c9, c0, 2 @ write the L2 cache aux ctrl register | ||
202 | #endif | ||
184 | mov r10, #0 | 203 | mov r10, #0 |
185 | #ifdef HARVARD_CACHE | 204 | #ifdef HARVARD_CACHE |
186 | mcr p15, 0, r10, c7, c5, 0 @ I+BTB cache invalidate | 205 | mcr p15, 0, r10, c7, c5, 0 @ I+BTB cache invalidate |