diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:18 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:18:16 -0400 |
commit | e55174e911637f0093bc9dac137b568e8a4a1f29 (patch) | |
tree | 1dacab9f4c9a77ac1bda836f9065bbe4ab7b3074 | |
parent | 03a22bfcfdfe88db8b4d2d9ee65476793038364f (diff) |
powerpc: Fixes for instructions not using correct register naming
These macros are using integers where they could be using logical
names since they take registers.
We are going to enforce this soon, so fix these up now.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/exceptions-64e.S | 8 | ||||
-rw-r--r-- | arch/powerpc/kernel/misc_64.S | 4 | ||||
-rw-r--r-- | arch/powerpc/lib/ldstfp.S | 4 | ||||
-rw-r--r-- | arch/powerpc/mm/tlb_nohash_low.S | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S index 7215cc2495df..bc3673431fde 100644 --- a/arch/powerpc/kernel/exceptions-64e.S +++ b/arch/powerpc/kernel/exceptions-64e.S | |||
@@ -903,7 +903,7 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
903 | bne 1b /* If not, repeat */ | 903 | bne 1b /* If not, repeat */ |
904 | 904 | ||
905 | /* Invalidate all TLBs */ | 905 | /* Invalidate all TLBs */ |
906 | PPC_TLBILX_ALL(0,0) | 906 | PPC_TLBILX_ALL(R0,R0) |
907 | sync | 907 | sync |
908 | isync | 908 | isync |
909 | 909 | ||
@@ -961,7 +961,7 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
961 | tlbwe | 961 | tlbwe |
962 | 962 | ||
963 | /* Invalidate TLB1 */ | 963 | /* Invalidate TLB1 */ |
964 | PPC_TLBILX_ALL(0,0) | 964 | PPC_TLBILX_ALL(R0,R0) |
965 | sync | 965 | sync |
966 | isync | 966 | isync |
967 | 967 | ||
@@ -1020,7 +1020,7 @@ skpinv: addi r6,r6,1 /* Increment */ | |||
1020 | tlbwe | 1020 | tlbwe |
1021 | 1021 | ||
1022 | /* Invalidate TLB1 */ | 1022 | /* Invalidate TLB1 */ |
1023 | PPC_TLBILX_ALL(0,0) | 1023 | PPC_TLBILX_ALL(R0,R0) |
1024 | sync | 1024 | sync |
1025 | isync | 1025 | isync |
1026 | 1026 | ||
@@ -1138,7 +1138,7 @@ a2_tlbinit_after_iprot_flush: | |||
1138 | tlbwe | 1138 | tlbwe |
1139 | #endif /* CONFIG_PPC_EARLY_DEBUG_WSP */ | 1139 | #endif /* CONFIG_PPC_EARLY_DEBUG_WSP */ |
1140 | 1140 | ||
1141 | PPC_TLBILX(0,0,0) | 1141 | PPC_TLBILX(0,R0,R0) |
1142 | sync | 1142 | sync |
1143 | isync | 1143 | isync |
1144 | 1144 | ||
diff --git a/arch/powerpc/kernel/misc_64.S b/arch/powerpc/kernel/misc_64.S index f52f9b949fd7..565b78625a32 100644 --- a/arch/powerpc/kernel/misc_64.S +++ b/arch/powerpc/kernel/misc_64.S | |||
@@ -309,7 +309,7 @@ _GLOBAL(real_205_readb) | |||
309 | mtmsrd r0 | 309 | mtmsrd r0 |
310 | sync | 310 | sync |
311 | isync | 311 | isync |
312 | LBZCIX(R3,0,R3) | 312 | LBZCIX(R3,R0,R3) |
313 | isync | 313 | isync |
314 | mtmsrd r7 | 314 | mtmsrd r7 |
315 | sync | 315 | sync |
@@ -324,7 +324,7 @@ _GLOBAL(real_205_writeb) | |||
324 | mtmsrd r0 | 324 | mtmsrd r0 |
325 | sync | 325 | sync |
326 | isync | 326 | isync |
327 | STBCIX(R3,0,R4) | 327 | STBCIX(R3,R0,R4) |
328 | isync | 328 | isync |
329 | mtmsrd r7 | 329 | mtmsrd r7 |
330 | sync | 330 | sync |
diff --git a/arch/powerpc/lib/ldstfp.S b/arch/powerpc/lib/ldstfp.S index 3abae6bc7b4b..85aec08ab234 100644 --- a/arch/powerpc/lib/ldstfp.S +++ b/arch/powerpc/lib/ldstfp.S | |||
@@ -332,7 +332,7 @@ _GLOBAL(do_lxvd2x) | |||
332 | beq cr7,1f | 332 | beq cr7,1f |
333 | STXVD2X(0,R1,R8) | 333 | STXVD2X(0,R1,R8) |
334 | 1: li r9,-EFAULT | 334 | 1: li r9,-EFAULT |
335 | 2: LXVD2X(0,0,R4) | 335 | 2: LXVD2X(0,R0,R4) |
336 | li r9,0 | 336 | li r9,0 |
337 | 3: beq cr7,4f | 337 | 3: beq cr7,4f |
338 | bl put_vsr | 338 | bl put_vsr |
@@ -361,7 +361,7 @@ _GLOBAL(do_stxvd2x) | |||
361 | STXVD2X(0,R1,R8) | 361 | STXVD2X(0,R1,R8) |
362 | bl get_vsr | 362 | bl get_vsr |
363 | 1: li r9,-EFAULT | 363 | 1: li r9,-EFAULT |
364 | 2: STXVD2X(0,0,R4) | 364 | 2: STXVD2X(0,R0,R4) |
365 | li r9,0 | 365 | li r9,0 |
366 | 3: beq cr7,4f | 366 | 3: beq cr7,4f |
367 | LXVD2X(0,R1,R8) | 367 | LXVD2X(0,R1,R8) |
diff --git a/arch/powerpc/mm/tlb_nohash_low.S b/arch/powerpc/mm/tlb_nohash_low.S index 5a1285a9109f..75a9d14a3dea 100644 --- a/arch/powerpc/mm/tlb_nohash_low.S +++ b/arch/powerpc/mm/tlb_nohash_low.S | |||
@@ -266,7 +266,7 @@ BEGIN_MMU_FTR_SECTION | |||
266 | andi. r3,r3,MMUCSR0_TLBFI@l | 266 | andi. r3,r3,MMUCSR0_TLBFI@l |
267 | bne 1b | 267 | bne 1b |
268 | MMU_FTR_SECTION_ELSE | 268 | MMU_FTR_SECTION_ELSE |
269 | PPC_TLBILX_ALL(0,0) | 269 | PPC_TLBILX_ALL(R0,R0) |
270 | ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX) | 270 | ALT_MMU_FTR_SECTION_END_IFCLR(MMU_FTR_USE_TLBILX) |
271 | msync | 271 | msync |
272 | isync | 272 | isync |
@@ -279,7 +279,7 @@ BEGIN_MMU_FTR_SECTION | |||
279 | wrteei 0 | 279 | wrteei 0 |
280 | mfspr r4,SPRN_MAS6 /* save MAS6 */ | 280 | mfspr r4,SPRN_MAS6 /* save MAS6 */ |
281 | mtspr SPRN_MAS6,r3 | 281 | mtspr SPRN_MAS6,r3 |
282 | PPC_TLBILX_PID(0,0) | 282 | PPC_TLBILX_PID(R0,R0) |
283 | mtspr SPRN_MAS6,r4 /* restore MAS6 */ | 283 | mtspr SPRN_MAS6,r4 /* restore MAS6 */ |
284 | wrtee r10 | 284 | wrtee r10 |
285 | MMU_FTR_SECTION_ELSE | 285 | MMU_FTR_SECTION_ELSE |
@@ -331,7 +331,7 @@ _GLOBAL(_tlbil_pid) | |||
331 | mfmsr r10 | 331 | mfmsr r10 |
332 | wrteei 0 | 332 | wrteei 0 |
333 | mtspr SPRN_MAS6,r4 | 333 | mtspr SPRN_MAS6,r4 |
334 | PPC_TLBILX_PID(0,0) | 334 | PPC_TLBILX_PID(R0,R0) |
335 | wrtee r10 | 335 | wrtee r10 |
336 | msync | 336 | msync |
337 | isync | 337 | isync |
@@ -343,14 +343,14 @@ _GLOBAL(_tlbil_pid_noind) | |||
343 | ori r4,r4,MAS6_SIND | 343 | ori r4,r4,MAS6_SIND |
344 | wrteei 0 | 344 | wrteei 0 |
345 | mtspr SPRN_MAS6,r4 | 345 | mtspr SPRN_MAS6,r4 |
346 | PPC_TLBILX_PID(0,0) | 346 | PPC_TLBILX_PID(R0,R0) |
347 | wrtee r10 | 347 | wrtee r10 |
348 | msync | 348 | msync |
349 | isync | 349 | isync |
350 | blr | 350 | blr |
351 | 351 | ||
352 | _GLOBAL(_tlbil_all) | 352 | _GLOBAL(_tlbil_all) |
353 | PPC_TLBILX_ALL(0,0) | 353 | PPC_TLBILX_ALL(R0,R0) |
354 | msync | 354 | msync |
355 | isync | 355 | isync |
356 | blr | 356 | blr |