Skip to content

Commit

Permalink
From Jens Rehsack. Fix for 64-bit AIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
atgreen committed Oct 5, 2009
1 parent e4a91de commit cd98813
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/powerpc/aix.S
Expand Up @@ -96,8 +96,12 @@
.globl .ffi_call_AIX
.csect ffi_call_AIX[DS]
ffi_call_AIX:
#if defined(_ARCH_PPC64)
.llong .ffi_call_AIX, TOC[tc0], 0
#else
.long .ffi_call_AIX, TOC[tc0], 0
.csect .text[PR]
#endif
.csect .text[PR]
.ffi_call_AIX:
mr r12,r8 // We only need r12 until the call, so it doesn't have to be saved...
/* Save the old stack pointer as AP. */
Expand Down Expand Up @@ -216,7 +220,11 @@ L(float_return_value):
.globl .ffi_call_DARWIN
.csect ffi_call_DARWIN[DS]
ffi_call_DARWIN:
#if defined(_ARCH_PPC64)
.llong .ffi_call_DARWIN, TOC[tc0], 0
#else
.long .ffi_call_DARWIN, TOC[tc0], 0
#endif
.csect .text[PR]
.ffi_call_DARWIN:
blr
Expand Down
5 changes: 5 additions & 0 deletions src/powerpc/aix_closure.S
Expand Up @@ -84,6 +84,7 @@
#define L(x) x
.file "aix_closure.S"
.toc
.extern .ffi_closure_helper_DARWIN
LC..60:
.tc L..60[TC],L..60
.csect .text[PR]
Expand All @@ -96,7 +97,11 @@ LC..60:
.csect ffi_closure_ASM[DS]

ffi_closure_ASM:
#if defined(_ARCH_PPC64)
.llong .ffi_closure_ASM, TOC[tc0], 0
#else
.long .ffi_closure_ASM, TOC[tc0], 0
#endif
.csect .text[PR]
.ffi_closure_ASM:

Expand Down

0 comments on commit cd98813

Please sign in to comment.