diff options
author | Anton Blanchard <anton@samba.org> | 2014-02-04 06:07:47 +0100 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2014-04-23 02:05:20 +0200 |
commit | cc7efbf91933a4b59c20e60115c336b26dfc1195 (patch) | |
tree | 0b569b956d916dbcc2ce7f7f052ff8c3c0377ec4 /arch/powerpc/kernel/entry_64.S | |
parent | powerpc: Remove function descriptors and dot symbols on new ABI (diff) | |
download | linux-cc7efbf91933a4b59c20e60115c336b26dfc1195.tar.xz linux-cc7efbf91933a4b59c20e60115c336b26dfc1195.zip |
powerpc: ABIv2 function calls must place target address in r12
To establish addressability quickly, ABIv2 requires the target
address of the function being called to be in r12. Fix a number of
places in assembly code that we do indirect function calls.
We need to avoid function descriptors on ABIv2 too.
Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 2662f02ba6cf..d23d7526d37a 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -174,8 +174,8 @@ system_call: /* label this so stack traces look sane */ clrldi r8,r8,32 15: slwi r0,r0,4 - ldx r10,r11,r0 /* Fetch system call handler [ptr] */ - mtctr r10 + ldx r12,r11,r0 /* Fetch system call handler [ptr] */ + mtctr r12 bctrl /* Call handler */ syscall_exit: |