aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/c-r3k.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/c-r3k.c')
-rw-r--r--arch/mips/mm/c-r3k.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/mm/c-r3k.c b/arch/mips/mm/c-r3k.c
index 031c4c2cdf2e..704dc735a59d 100644
--- a/arch/mips/mm/c-r3k.c
+++ b/arch/mips/mm/c-r3k.c
@@ -119,7 +119,7 @@ static void r3k_flush_icache_range(unsigned long start, unsigned long end)
119 write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC); 119 write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC);
120 120
121 for (i = 0; i < size; i += 0x080) { 121 for (i = 0; i < size; i += 0x080) {
122 asm( "sb\t$0, 0x000(%0)\n\t" 122 asm( "sb\t$0, 0x000(%0)\n\t"
123 "sb\t$0, 0x004(%0)\n\t" 123 "sb\t$0, 0x004(%0)\n\t"
124 "sb\t$0, 0x008(%0)\n\t" 124 "sb\t$0, 0x008(%0)\n\t"
125 "sb\t$0, 0x00c(%0)\n\t" 125 "sb\t$0, 0x00c(%0)\n\t"
@@ -176,7 +176,7 @@ static void r3k_flush_dcache_range(unsigned long start, unsigned long end)
176 write_c0_status((ST0_ISC|flags)&~ST0_IEC); 176 write_c0_status((ST0_ISC|flags)&~ST0_IEC);
177 177
178 for (i = 0; i < size; i += 0x080) { 178 for (i = 0; i < size; i += 0x080) {
179 asm( "sb\t$0, 0x000(%0)\n\t" 179 asm( "sb\t$0, 0x000(%0)\n\t"
180 "sb\t$0, 0x004(%0)\n\t" 180 "sb\t$0, 0x004(%0)\n\t"
181 "sb\t$0, 0x008(%0)\n\t" 181 "sb\t$0, 0x008(%0)\n\t"
182 "sb\t$0, 0x00c(%0)\n\t" 182 "sb\t$0, 0x00c(%0)\n\t"
@@ -285,13 +285,13 @@ static void r3k_flush_cache_sigtramp(unsigned long addr)
285 write_c0_status(flags&~ST0_IEC); 285 write_c0_status(flags&~ST0_IEC);
286 286
287 /* Fill the TLB to avoid an exception with caches isolated. */ 287 /* Fill the TLB to avoid an exception with caches isolated. */
288 asm( "lw\t$0, 0x000(%0)\n\t" 288 asm( "lw\t$0, 0x000(%0)\n\t"
289 "lw\t$0, 0x004(%0)\n\t" 289 "lw\t$0, 0x004(%0)\n\t"
290 : : "r" (addr) ); 290 : : "r" (addr) );
291 291
292 write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC); 292 write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC);
293 293
294 asm( "sb\t$0, 0x000(%0)\n\t" 294 asm( "sb\t$0, 0x000(%0)\n\t"
295 "sb\t$0, 0x004(%0)\n\t" 295 "sb\t$0, 0x004(%0)\n\t"
296 : : "r" (addr) ); 296 : : "r" (addr) );
297 297