/external/python/cpython2/Modules/_ctypes/libffi/src/x86/ |
D | ffi.c | 581 { unsigned char *__tramp = (unsigned char*)(TRAMP); \ 584 *(unsigned char*) &__tramp[0] = 0x41; \ 585 *(unsigned char*) &__tramp[1] = 0xbb; \ 586 *(unsigned int*) &__tramp[2] = MASK; /* mov $mask, %r11 */ \ 587 *(unsigned char*) &__tramp[6] = 0x48; \ 588 *(unsigned char*) &__tramp[7] = 0xb8; \ 589 *(void**) &__tramp[8] = __ctx; /* mov __ctx, %rax */ \ 590 *(unsigned char *) &__tramp[16] = 0x49; \ 591 *(unsigned char *) &__tramp[17] = 0xba; \ 592 *(void**) &__tramp[18] = __fun; /* mov __fun, %r10 */ \ [all …]
|
/external/libffi/src/x86/ |
D | ffi.c | 649 { unsigned char *__tramp = (unsigned char*)(TRAMP); \ 652 *(unsigned char*) &__tramp[0] = 0x41; \ 653 *(unsigned char*) &__tramp[1] = 0xbb; \ 654 *(unsigned int*) &__tramp[2] = MASK; /* mov $mask, %r11 */ \ 655 *(unsigned char*) &__tramp[6] = 0x48; \ 656 *(unsigned char*) &__tramp[7] = 0xb8; \ 657 *(void**) &__tramp[8] = __ctx; /* mov __ctx, %rax */ \ 658 *(unsigned char *) &__tramp[16] = 0x49; \ 659 *(unsigned char *) &__tramp[17] = 0xba; \ 660 *(void**) &__tramp[18] = __fun; /* mov __fun, %r10 */ \ [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/avr32/ |
D | ffi.c | 401 unsigned char *__tramp = (unsigned char*)(&closure->tramp[0]); in ffi_prep_closure_loc() local 406 *(unsigned int*) &__tramp[0] = 0xebcd1f00; /* pushm r8-r12 */ in ffi_prep_closure_loc() 407 *(unsigned int*) &__tramp[4] = 0xfefc0010; /* ld.w r12, pc[16] */ in ffi_prep_closure_loc() 408 *(unsigned int*) &__tramp[8] = 0xfefb0010; /* ld.w r11, pc[16] */ in ffi_prep_closure_loc() 409 *(unsigned int*) &__tramp[12] = 0xfefa0010; /* ld.w r10, pc[16] */ in ffi_prep_closure_loc() 410 *(unsigned int*) &__tramp[16] = 0xfeff0010; /* ld.w pc, pc[16] */ in ffi_prep_closure_loc() 411 *(unsigned int*) &__tramp[20] = __ctx; in ffi_prep_closure_loc() 412 *(unsigned int*) &__tramp[24] = __rstruct_flag; in ffi_prep_closure_loc() 413 *(unsigned int*) &__tramp[28] = __inner; in ffi_prep_closure_loc() 414 *(unsigned int*) &__tramp[32] = __fun; in ffi_prep_closure_loc() [all …]
|
/external/libffi/src/avr32/ |
D | ffi.c | 401 unsigned char *__tramp = (unsigned char*)(&closure->tramp[0]); in ffi_prep_closure_loc() local 406 *(unsigned int*) &__tramp[0] = 0xebcd1f00; /* pushm r8-r12 */ in ffi_prep_closure_loc() 407 *(unsigned int*) &__tramp[4] = 0xfefc0010; /* ld.w r12, pc[16] */ in ffi_prep_closure_loc() 408 *(unsigned int*) &__tramp[8] = 0xfefb0010; /* ld.w r11, pc[16] */ in ffi_prep_closure_loc() 409 *(unsigned int*) &__tramp[12] = 0xfefa0010; /* ld.w r10, pc[16] */ in ffi_prep_closure_loc() 410 *(unsigned int*) &__tramp[16] = 0xfeff0010; /* ld.w pc, pc[16] */ in ffi_prep_closure_loc() 411 *(unsigned int*) &__tramp[20] = __ctx; in ffi_prep_closure_loc() 412 *(unsigned int*) &__tramp[24] = __rstruct_flag; in ffi_prep_closure_loc() 413 *(unsigned int*) &__tramp[28] = __inner; in ffi_prep_closure_loc() 414 *(unsigned int*) &__tramp[32] = __fun; in ffi_prep_closure_loc() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/metag/ |
D | ffi.c | 227 void ffi_init_trampoline(unsigned char *__tramp, unsigned int __fun, unsigned int __ctx) { in ffi_init_trampoline() argument 228 memcpy (__tramp, ffi_metag_trampoline, sizeof(ffi_metag_trampoline)); in ffi_init_trampoline() 229 *(unsigned int*) &__tramp[40] = __ctx; in ffi_init_trampoline() 230 *(unsigned int*) &__tramp[44] = __fun; in ffi_init_trampoline() 232 __builtin_meta2_cachewd(&__tramp[0], 1); in ffi_init_trampoline() 233 __builtin_meta2_cachewd(&__tramp[47], 1); in ffi_init_trampoline()
|
/external/libffi/src/metag/ |
D | ffi.c | 227 void ffi_init_trampoline(unsigned char *__tramp, unsigned int __fun, unsigned int __ctx) { in ffi_init_trampoline() argument 228 memcpy (__tramp, ffi_metag_trampoline, sizeof(ffi_metag_trampoline)); in ffi_init_trampoline() 229 *(unsigned int*) &__tramp[40] = __ctx; in ffi_init_trampoline() 230 *(unsigned int*) &__tramp[44] = __fun; in ffi_init_trampoline() 232 __builtin_meta2_cachewd(&__tramp[0], 1); in ffi_init_trampoline() 233 __builtin_meta2_cachewd(&__tramp[47], 1); in ffi_init_trampoline()
|
/external/python/cpython2/Modules/_ctypes/libffi_arm_wince/ |
D | ffi.c | 278 unsigned int *__tramp = (unsigned int *)(TRAMP); \ 279 __tramp[0] = 0xe24fc008; /* add ip, pc, #-8 */ \ 280 __tramp[1] = 0xe51ff004; /* ldr pc, [pc, #-4] */ \ 281 __tramp[2] = (unsigned int)(FUN); \
|
/external/python/cpython3/Modules/_ctypes/libffi_osx/x86/ |
D | x86-ffi_darwin.c | 308 ({ unsigned char *__tramp = (unsigned char*)(TRAMP); \ 312 *(unsigned char*) &__tramp[0] = 0xb8; \ 313 *(unsigned int*) &__tramp[1] = __ctx; /* movl __ctx, %eax */ \ 314 *(unsigned char *) &__tramp[5] = 0xe9; \ 315 *(unsigned int*) &__tramp[6] = __dis; /* jmp __fun */ \
|
/external/python/cpython2/Modules/_ctypes/libffi_osx/x86/ |
D | x86-ffi_darwin.c | 308 ({ unsigned char *__tramp = (unsigned char*)(TRAMP); \ 312 *(unsigned char*) &__tramp[0] = 0xb8; \ 313 *(unsigned int*) &__tramp[1] = __ctx; /* movl __ctx, %eax */ \ 314 *(unsigned char *) &__tramp[5] = 0xe9; \ 315 *(unsigned int*) &__tramp[6] = __dis; /* jmp __fun */ \
|
/external/python/cpython2/Modules/_ctypes/libffi/src/aarch64/ |
D | ffi.c | 905 ({unsigned char *__tramp = (unsigned char*)(TRAMP); \ 909 memcpy (__tramp, trampoline, sizeof (trampoline)); \ 910 memcpy (__tramp + 12, &__fun, sizeof (__fun)); \ 911 memcpy (__tramp + 20, &__ctx, sizeof (__ctx)); \ 912 memcpy (__tramp + 28, &__flags, sizeof (__flags)); \ 913 ffi_clear_cache(__tramp, __tramp + FFI_TRAMPOLINE_SIZE); \
|
/external/libffi/src/aarch64/ |
D | ffi.c | 916 ({unsigned char *__tramp = (unsigned char*)(TRAMP); \ 920 memcpy (__tramp, trampoline, sizeof (trampoline)); \ 921 memcpy (__tramp + 12, &__fun, sizeof (__fun)); \ 922 memcpy (__tramp + 20, &__ctx, sizeof (__ctx)); \ 923 memcpy (__tramp + 28, &__flags, sizeof (__flags)); \ 924 ffi_clear_cache(__tramp, __tramp + FFI_TRAMPOLINE_SIZE); \
|
/external/python/cpython2/Modules/_ctypes/libffi/src/arm/ |
D | ffi.c | 755 ({ unsigned char *__tramp = (unsigned char*)(TRAMP); \ 759 memcpy (__tramp, ffi_arm_trampoline, sizeof ffi_arm_trampoline); \ 760 *(unsigned int*) &__tramp[12] = __ctx; \ 761 *(unsigned int*) &__tramp[16] = __fun; \ 762 __clear_cache((&__tramp[0]), (&__tramp[19])); /* Clear data mapping. */ \
|
/external/libffi/src/arm/ |
D | ffi.c | 755 ({ unsigned char *__tramp = (unsigned char*)(TRAMP); \ 759 memcpy (__tramp, ffi_arm_trampoline, sizeof ffi_arm_trampoline); \ 760 *(unsigned int*) &__tramp[12] = __ctx; \ 761 *(unsigned int*) &__tramp[16] = __fun; \ 762 __clear_cache((&__tramp[0]), (&__tramp[19])); /* Clear data mapping. */ \
|