diff options
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index aacebb33e98a..4ba81e1b6bf1 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S | |||
@@ -689,9 +689,8 @@ _GLOBAL(enter_rtas) | |||
689 | std r6,PACASAVEDMSR(r13) | 689 | std r6,PACASAVEDMSR(r13) |
690 | 690 | ||
691 | /* Setup our real return addr */ | 691 | /* Setup our real return addr */ |
692 | SET_REG_TO_LABEL(r4,.rtas_return_loc) | 692 | LOAD_REG_ADDR(r4,.rtas_return_loc) |
693 | SET_REG_TO_CONST(r9,PAGE_OFFSET) | 693 | clrldi r4,r4,2 /* convert to realmode address */ |
694 | sub r4,r4,r9 | ||
695 | mtlr r4 | 694 | mtlr r4 |
696 | 695 | ||
697 | li r0,0 | 696 | li r0,0 |
@@ -706,7 +705,7 @@ _GLOBAL(enter_rtas) | |||
706 | sync /* disable interrupts so SRR0/1 */ | 705 | sync /* disable interrupts so SRR0/1 */ |
707 | mtmsrd r0 /* don't get trashed */ | 706 | mtmsrd r0 /* don't get trashed */ |
708 | 707 | ||
709 | SET_REG_TO_LABEL(r4,rtas) | 708 | LOAD_REG_ADDR(r4, rtas) |
710 | ld r5,RTASENTRY(r4) /* get the rtas->entry value */ | 709 | ld r5,RTASENTRY(r4) /* get the rtas->entry value */ |
711 | ld r4,RTASBASE(r4) /* get the rtas->base value */ | 710 | ld r4,RTASBASE(r4) /* get the rtas->base value */ |
712 | 711 | ||
@@ -718,8 +717,7 @@ _GLOBAL(enter_rtas) | |||
718 | _STATIC(rtas_return_loc) | 717 | _STATIC(rtas_return_loc) |
719 | /* relocation is off at this point */ | 718 | /* relocation is off at this point */ |
720 | mfspr r4,SPRN_SPRG3 /* Get PACA */ | 719 | mfspr r4,SPRN_SPRG3 /* Get PACA */ |
721 | SET_REG_TO_CONST(r5, PAGE_OFFSET) | 720 | clrldi r4,r4,2 /* convert to realmode address */ |
722 | sub r4,r4,r5 /* RELOC the PACA base pointer */ | ||
723 | 721 | ||
724 | mfmsr r6 | 722 | mfmsr r6 |
725 | li r0,MSR_RI | 723 | li r0,MSR_RI |
@@ -728,7 +726,7 @@ _STATIC(rtas_return_loc) | |||
728 | mtmsrd r6 | 726 | mtmsrd r6 |
729 | 727 | ||
730 | ld r1,PACAR1(r4) /* Restore our SP */ | 728 | ld r1,PACAR1(r4) /* Restore our SP */ |
731 | LOADADDR(r3,.rtas_restore_regs) | 729 | LOAD_REG_IMMEDIATE(r3,.rtas_restore_regs) |
732 | ld r4,PACASAVEDMSR(r4) /* Restore our MSR */ | 730 | ld r4,PACASAVEDMSR(r4) /* Restore our MSR */ |
733 | 731 | ||
734 | mtspr SPRN_SRR0,r3 | 732 | mtspr SPRN_SRR0,r3 |