diff options
Diffstat (limited to 'arch/powerpc/kernel/head_44x.S')
| -rw-r--r-- | arch/powerpc/kernel/head_44x.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index 37e4a7cf0065..bf23c19c92d6 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | #include <asm/ptrace.h> | 40 | #include <asm/ptrace.h> |
| 41 | #include <asm/synch.h> | 41 | #include <asm/synch.h> |
| 42 | #include <asm/export.h> | 42 | #include <asm/export.h> |
| 43 | #include <asm/code-patching-asm.h> | ||
| 43 | #include "head_booke.h" | 44 | #include "head_booke.h" |
| 44 | 45 | ||
| 45 | 46 | ||
| @@ -382,10 +383,9 @@ interrupt_base: | |||
| 382 | /* Increment, rollover, and store TLB index */ | 383 | /* Increment, rollover, and store TLB index */ |
| 383 | addi r13,r13,1 | 384 | addi r13,r13,1 |
| 384 | 385 | ||
| 386 | patch_site 0f, patch__tlb_44x_hwater_D | ||
| 385 | /* Compare with watermark (instruction gets patched) */ | 387 | /* Compare with watermark (instruction gets patched) */ |
| 386 | .globl tlb_44x_patch_hwater_D | 388 | 0: cmpwi 0,r13,1 /* reserve entries */ |
| 387 | tlb_44x_patch_hwater_D: | ||
| 388 | cmpwi 0,r13,1 /* reserve entries */ | ||
| 389 | ble 5f | 389 | ble 5f |
| 390 | li r13,0 | 390 | li r13,0 |
| 391 | 5: | 391 | 5: |
| @@ -478,10 +478,9 @@ tlb_44x_patch_hwater_D: | |||
| 478 | /* Increment, rollover, and store TLB index */ | 478 | /* Increment, rollover, and store TLB index */ |
| 479 | addi r13,r13,1 | 479 | addi r13,r13,1 |
| 480 | 480 | ||
| 481 | patch_site 0f, patch__tlb_44x_hwater_I | ||
| 481 | /* Compare with watermark (instruction gets patched) */ | 482 | /* Compare with watermark (instruction gets patched) */ |
| 482 | .globl tlb_44x_patch_hwater_I | 483 | 0: cmpwi 0,r13,1 /* reserve entries */ |
| 483 | tlb_44x_patch_hwater_I: | ||
| 484 | cmpwi 0,r13,1 /* reserve entries */ | ||
| 485 | ble 5f | 484 | ble 5f |
| 486 | li r13,0 | 485 | li r13,0 |
| 487 | 5: | 486 | 5: |
