diff options
Diffstat (limited to 'arch/arm/mm/proc-arm940.S')
-rw-r--r-- | arch/arm/mm/proc-arm940.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mm/proc-arm940.S b/arch/arm/mm/proc-arm940.S index 9fdc0a170974..a613a7dd7146 100644 --- a/arch/arm/mm/proc-arm940.S +++ b/arch/arm/mm/proc-arm940.S | |||
@@ -160,7 +160,7 @@ ENTRY(arm940_coherent_user_range) | |||
160 | * - size - region size | 160 | * - size - region size |
161 | */ | 161 | */ |
162 | ENTRY(arm940_flush_kern_dcache_area) | 162 | ENTRY(arm940_flush_kern_dcache_area) |
163 | mov ip, #0 | 163 | mov r0, #0 |
164 | mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments | 164 | mov r1, #(CACHE_DSEGMENTS - 1) << 4 @ 4 segments |
165 | 1: orr r3, r1, #(CACHE_DENTRIES - 1) << 26 @ 64 entries | 165 | 1: orr r3, r1, #(CACHE_DENTRIES - 1) << 26 @ 64 entries |
166 | 2: mcr p15, 0, r3, c7, c14, 2 @ clean/flush D index | 166 | 2: mcr p15, 0, r3, c7, c14, 2 @ clean/flush D index |
@@ -168,8 +168,8 @@ ENTRY(arm940_flush_kern_dcache_area) | |||
168 | bcs 2b @ entries 63 to 0 | 168 | bcs 2b @ entries 63 to 0 |
169 | subs r1, r1, #1 << 4 | 169 | subs r1, r1, #1 << 4 |
170 | bcs 1b @ segments 7 to 0 | 170 | bcs 1b @ segments 7 to 0 |
171 | mcr p15, 0, ip, c7, c5, 0 @ invalidate I cache | 171 | mcr p15, 0, r0, c7, c5, 0 @ invalidate I cache |
172 | mcr p15, 0, ip, c7, c10, 4 @ drain WB | 172 | mcr p15, 0, r0, c7, c10, 4 @ drain WB |
173 | mov pc, lr | 173 | mov pc, lr |
174 | 174 | ||
175 | /* | 175 | /* |