X-Git-Url: https://git.saurik.com/apple/libsystem.git/blobdiff_plain/e29534dc559187342608876434f4d78a0bf84439..7bf534a36dd3e0870f68fb6a93fc0e3f6397b5cd:/spinlocktry_stub.s diff --git a/spinlocktry_stub.s b/spinlocktry_stub.s index a4d8955..0c2e437 100644 --- a/spinlocktry_stub.s +++ b/spinlocktry_stub.s @@ -25,7 +25,8 @@ #define __APPLE_API_PRIVATE #include -#if defined(__ppc__) +#if defined(__ppc__) || defined(__ppc64__) +#include .data .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32 .align 2 @@ -43,14 +44,14 @@ L__spin_lock_try$stub: .lazy_symbol_pointer L__spin_lock_try$lazy_ptr: .indirect_symbol __spin_lock_try - .long dyld_stub_binding_helper + .g_long dyld_stub_binding_helper #elif defined(__i386__) .data .picsymbol_stub L__spin_lock_try$stub: .indirect_symbol __spin_lock_try movl $(_COMM_PAGE_SPINLOCK_TRY), %eax - jmp %eax + jmp *%eax nop call LPC$1 LPC$1: popl %eax