Home
last modified time | relevance | path

Searched refs:tramp (Results 1 – 25 of 47) sorted by relevance

12

/third_party/libffi/src/frv/
Dffi.c255 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc() local
266 tramp[0] = &((unsigned int *)codeloc)[2]; in ffi_prep_closure_loc()
267 tramp[1] = got; in ffi_prep_closure_loc()
268 tramp[2] = 0x8cfc0000 + (fn & 0xffff); /* setlos lo(fn), gr6 */ in ffi_prep_closure_loc()
269 tramp[3] = 0x8efc0000 + (cls & 0xffff); /* setlos lo(cls), gr7 */ in ffi_prep_closure_loc()
270 tramp[4] = 0x8cf80000 + (fn >> 16); /* sethi hi(fn), gr6 */ in ffi_prep_closure_loc()
271 tramp[5] = 0x8ef80000 + (cls >> 16); /* sethi hi(cls), gr7 */ in ffi_prep_closure_loc()
272 tramp[6] = 0x9cc86000; /* ldi @(gr6, #0), gr14 */ in ffi_prep_closure_loc()
273 tramp[7] = 0x8030e000; /* jmpl @(gr14, gr0) */ in ffi_prep_closure_loc()
275 tramp[0] = 0x8cfc0000 + (fn & 0xffff); /* setlos lo(fn), gr6 */ in ffi_prep_closure_loc()
[all …]
/third_party/libffi/src/or1k/
Dffi.c271 unsigned short *tramp = (unsigned short *) closure->tramp; in ffi_prep_closure_loc() local
283 tramp[0] = (0x6 << 10) | (13 << 5); /* l.movhi r13, ... */ in ffi_prep_closure_loc()
284 tramp[1] = cls >> 16; in ffi_prep_closure_loc()
285 tramp[2] = (0x2a << 10) | (13 << 5) | 13; /* l.ori r13, r13, ... */ in ffi_prep_closure_loc()
286 tramp[3] = cls & 0xFFFF; in ffi_prep_closure_loc()
288 tramp[4] = (0x6 << 10) | (15 << 5); /* l.movhi r15, ... */ in ffi_prep_closure_loc()
289 tramp[5] = fn >> 16; in ffi_prep_closure_loc()
290 tramp[6] = (0x2a << 10) | (15 << 5) | 15; /* l.ori r15, r15 ... */ in ffi_prep_closure_loc()
291 tramp[7] = fn & 0xFFFF; in ffi_prep_closure_loc()
293 tramp[8] = (0x11 << 10); /* l.jr r15 */ in ffi_prep_closure_loc()
[all …]
/third_party/libffi/src/pa/
Dffi.c633 UINT32 *tramp = (UINT32 *)(closure->tramp); in ffi_prep_closure_loc() local
645 tramp[0] = 0xeaa00000; /* b,l .+8,%r21 ; %r21 <- pc+8 */ in ffi_prep_closure_loc()
646 tramp[1] = 0xd6a01c1e; /* depi 0,31,2,%r21 ; mask priv bits */ in ffi_prep_closure_loc()
647 tramp[2] = 0x4aa10028; /* ldw 20(%r21),%r1 ; load plabel */ in ffi_prep_closure_loc()
648 tramp[3] = 0x36b53ff1; /* ldo -8(%r21),%r21 ; get closure addr */ in ffi_prep_closure_loc()
649 tramp[4] = 0x0c201096; /* ldw 0(%r1),%r22 ; address of handler */ in ffi_prep_closure_loc()
650 tramp[5] = 0xeac0c000; /* bv%r0(%r22) ; branch to handler */ in ffi_prep_closure_loc()
651 tramp[6] = 0x0c281093; /* ldw 4(%r1),%r19 ; GP of handler */ in ffi_prep_closure_loc()
652 tramp[7] = ((UINT32)(ffi_closure_pa32) & ~2); in ffi_prep_closure_loc()
670 : "r"((unsigned long)tramp & ~31), in ffi_prep_closure_loc()
[all …]
/third_party/libffi/src/vax/
Dffi.c246 char *tramp = (char *) codeloc; in ffi_prep_closure_loc() local
252 *(unsigned short *)(tramp + 0) = 0x0000; in ffi_prep_closure_loc()
254 tramp[2] = 0xd0; in ffi_prep_closure_loc()
255 tramp[3] = 0x8f; in ffi_prep_closure_loc()
256 *(unsigned int *)(tramp + 4) = (unsigned int) closure; in ffi_prep_closure_loc()
257 tramp[8] = 0x50; in ffi_prep_closure_loc()
266 tramp[9] = 0x17; in ffi_prep_closure_loc()
267 tramp[10] = 0xef; in ffi_prep_closure_loc()
268 *(unsigned int *)(tramp + 11) = (unsigned int)fn + 2 - in ffi_prep_closure_loc()
269 (unsigned int)tramp - 9 - 6; in ffi_prep_closure_loc()
/third_party/libffi/src/nios2/
Dffi.c259 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc() local
282 tramp[0] = (0 << 27) | (8 << 22) | (HI (ffi_closure_sysv) << 6) | 0x34; in ffi_prep_closure_loc()
283 tramp[1] = (8 << 27) | (8 << 22) | (LO (ffi_closure_sysv) << 6) | 0x14; in ffi_prep_closure_loc()
284 tramp[2] = (0 << 27) | (9 << 22) | (HI (ffi_closure_helper) << 6) | 0x34; in ffi_prep_closure_loc()
285 tramp[3] = (9 << 27) | (9 << 22) | (LO (ffi_closure_helper) << 6) | 0x14; in ffi_prep_closure_loc()
286 tramp[4] = (0 << 27) | (10 << 22) | (HI (closure) << 6) | 0x34; in ffi_prep_closure_loc()
287 tramp[5] = (10 << 27) | (10 << 22) | (LO (closure) << 6) | 0x14; in ffi_prep_closure_loc()
288 tramp[6] = (8 << 27) | (0x0d << 11) | 0x3a; in ffi_prep_closure_loc()
295 asm volatile ("flushd 0(%0); flushi %0" :: "r"(tramp + i) : "memory"); in ffi_prep_closure_loc()
/third_party/libffi/src/sh64/
Dffi.c303 unsigned int *tramp; in ffi_prep_closure_loc() local
308 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
317 tramp[0] = 0x7001c701; in ffi_prep_closure_loc()
318 tramp[1] = 0x0009402b; in ffi_prep_closure_loc()
320 tramp[0] = 0xc7017001; in ffi_prep_closure_loc()
321 tramp[1] = 0x402b0009; in ffi_prep_closure_loc()
323 tramp[2] = 0xcc000010 | (((UINT32) ffi_closure_SYSV) >> 16) << 10; in ffi_prep_closure_loc()
324 tramp[3] = 0xc8000010 | (((UINT32) ffi_closure_SYSV) & 0xffff) << 10; in ffi_prep_closure_loc()
325 tramp[4] = 0x6bf10600; in ffi_prep_closure_loc()
326 tramp[5] = 0xcc000010 | (((UINT32) codeloc) >> 16) << 10; in ffi_prep_closure_loc()
[all …]
/third_party/libffi/src/microblaze/
Dffi.c282 unsigned long* tramp = (unsigned long*)&(closure->tramp[0]); in ffi_prep_closure_loc() local
298 tramp[0] = 0xb0000000 | ((fn >> 16) & 0xffff); in ffi_prep_closure_loc()
300 tramp[1] = 0x31600000 | (fn & 0xffff); in ffi_prep_closure_loc()
304 tramp[2] = 0xb0000000 | ((cls >> 16) & 0xffff); in ffi_prep_closure_loc()
306 tramp[3] = 0x31800000 | (cls & 0xffff); in ffi_prep_closure_loc()
310 tramp[4] = 0xb0000000 | ((fn_closure_call_sysv >> 16) & 0xffff); in ffi_prep_closure_loc()
312 tramp[5] = 0x30600000 | (fn_closure_call_sysv & 0xffff); in ffi_prep_closure_loc()
314 tramp[6] = 0x98085800; /* bra r11 */ in ffi_prep_closure_loc()
/third_party/libffi/src/moxie/
Dffi.c264 unsigned short *tramp = (unsigned short *) &closure->tramp[0]; in ffi_prep_closure_loc() local
273 tramp[0] = 0x01e0; /* ldi.l $r12, .... */ in ffi_prep_closure_loc()
274 tramp[1] = cls >> 16; in ffi_prep_closure_loc()
275 tramp[2] = cls & 0xffff; in ffi_prep_closure_loc()
276 tramp[3] = 0x1a00; /* jmpa .... */ in ffi_prep_closure_loc()
277 tramp[4] = fn >> 16; in ffi_prep_closure_loc()
278 tramp[5] = fn & 0xffff; in ffi_prep_closure_loc()
/third_party/libffi/src/powerpc/
Dffi_darwin.c1046 unsigned int *tramp; in ffi_prep_closure_loc() local
1056 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
1058 tramp[0] = 0x7c0802a6; /* mflr r0 */ in ffi_prep_closure_loc()
1059 tramp[1] = 0x429f0015; /* bcl- 20,4*cr7+so, +0x18 (L1) */ in ffi_prep_closure_loc()
1061 tramp[6] = 0x7d6802a6; /*L1: mflr r11 */ in ffi_prep_closure_loc()
1062 tramp[7] = 0xe98b0000; /* ld r12,0(r11) function address */ in ffi_prep_closure_loc()
1063 tramp[8] = 0x7c0803a6; /* mtlr r0 */ in ffi_prep_closure_loc()
1064 tramp[9] = 0x7d8903a6; /* mtctr r12 */ in ffi_prep_closure_loc()
1065 tramp[10] = 0xe96b0008; /* lwz r11,8(r11) static chain */ in ffi_prep_closure_loc()
1066 tramp[11] = 0x4e800420; /* bctr */ in ffi_prep_closure_loc()
[all …]
Dffi_sysv.c639 unsigned int *tramp; in ffi_prep_closure_loc_sysv() local
644 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc_sysv()
645 tramp[0] = 0x7c0802a6; /* mflr r0 */ in ffi_prep_closure_loc_sysv()
646 tramp[1] = 0x429f0005; /* bcl 20,31,.+4 */ in ffi_prep_closure_loc_sysv()
647 tramp[2] = 0x7d6802a6; /* mflr r11 */ in ffi_prep_closure_loc_sysv()
648 tramp[3] = 0x7c0803a6; /* mtlr r0 */ in ffi_prep_closure_loc_sysv()
649 tramp[4] = 0x800b0018; /* lwz r0,24(r11) */ in ffi_prep_closure_loc_sysv()
650 tramp[5] = 0x816b001c; /* lwz r11,28(r11) */ in ffi_prep_closure_loc_sysv()
651 tramp[6] = 0x7c0903a6; /* mtctr r0 */ in ffi_prep_closure_loc_sysv()
652 tramp[7] = 0x4e800420; /* bctr */ in ffi_prep_closure_loc_sysv()
[all …]
Dffi_linux64.c824 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc_linux64() local
829 tramp[0] = 0xe96c0018; /* 0: ld 11,2f-0b(12) */ in ffi_prep_closure_loc_linux64()
830 tramp[1] = 0xe98c0010; /* ld 12,1f-0b(12) */ in ffi_prep_closure_loc_linux64()
831 tramp[2] = 0x7d8903a6; /* mtctr 12 */ in ffi_prep_closure_loc_linux64()
832 tramp[3] = 0x4e800420; /* bctr */ in ffi_prep_closure_loc_linux64()
835 *(void **) &tramp[4] = (void *) ffi_closure_LINUX64; in ffi_prep_closure_loc_linux64()
836 *(void **) &tramp[6] = codeloc; in ffi_prep_closure_loc_linux64()
837 flush_icache ((char *) tramp, (char *) codeloc, 4 * 4); in ffi_prep_closure_loc_linux64()
839 void **tramp = (void **) &closure->tramp[0]; in ffi_prep_closure_loc_linux64()
845 memcpy (&tramp[0], (void **) ffi_closure_LINUX64, sizeof (void *)); in ffi_prep_closure_loc_linux64()
[all …]
/third_party/libffi/src/mips/
Dffi.c705 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc() local
728 tramp[0] = 0x3c190000 | ((unsigned)fn >> 16); in ffi_prep_closure_loc()
730 tramp[1] = 0x37390000 | ((unsigned)fn & 0xffff); in ffi_prep_closure_loc()
732 tramp[2] = 0x3c0c0000 | ((unsigned)codeloc >> 16); in ffi_prep_closure_loc()
735 tramp[3] = 0x03200008; in ffi_prep_closure_loc()
737 tramp[3] = 0x03200009; in ffi_prep_closure_loc()
740 tramp[4] = 0x358c0000 | ((unsigned)codeloc & 0xffff); in ffi_prep_closure_loc()
744 tramp[0] = 0x3c190000 | ((unsigned long)fn >> 48); in ffi_prep_closure_loc()
746 tramp[1] = 0x3c0c0000 | ((unsigned long)codeloc >> 48); in ffi_prep_closure_loc()
748 tramp[2] = 0x37390000 | (((unsigned long)fn >> 32 ) & 0xffff); in ffi_prep_closure_loc()
[all …]
/third_party/python/Modules/_ctypes/libffi_osx/powerpc/
Dppc-ffi_darwin.c726 unsigned int* tramp = (unsigned int*)&closure->tramp[0]; in ffi_prep_closure() local
729 tramp[0] = 0x7c0802a6; // mflr r0 in ffi_prep_closure()
730 tramp[1] = 0x429f0005; // bcl 20,31,+0x8 in ffi_prep_closure()
731 tramp[2] = 0x7d6802a6; // mflr r11 in ffi_prep_closure()
732 tramp[3] = 0x7c0803a6; // mtlr r0 in ffi_prep_closure()
733 tramp[4] = 0xe98b0018; // ld r12,24(r11) in ffi_prep_closure()
734 tramp[5] = 0x7d8903a6; // mtctr r12 in ffi_prep_closure()
735 tramp[6] = 0xe96b0020; // ld r11,32(r11) in ffi_prep_closure()
736 tramp[7] = 0x4e800420; // bctr in ffi_prep_closure()
737 *(unsigned long*)&tramp[8] = (unsigned long)ffi_closure_ASM; in ffi_prep_closure()
[all …]
/third_party/libffi/src/arc/
Dffi.c245 uint32_t *tramp = (uint32_t *) & (closure->tramp[0]); in ffi_prep_closure_loc() local
250 FFI_ASSERT (tramp == codeloc); in ffi_prep_closure_loc()
251 tramp[0] = CODE_ENDIAN (0x200a1fc0); /* mov r8, pcl */ in ffi_prep_closure_loc()
252 tramp[1] = CODE_ENDIAN (0x20200f80); /* j [long imm] */ in ffi_prep_closure_loc()
253 tramp[2] = CODE_ENDIAN (ffi_closure_ARCompact); in ffi_prep_closure_loc()
/third_party/boost/boost/log/utility/type_dispatch/
Dtype_dispatcher.hpp52 explicit callback_base(void* visitor = 0, void* tramp = 0) BOOST_NOEXCEPT : in callback_base() argument
54 m_pTrampoline(tramp) in callback_base()
58 explicit callback_base(void* visitor, void (*tramp)(void*, ValueT const&)) BOOST_NOEXCEPT : in callback_base()
69 caster.as_trampoline = tramp; in callback_base()
/third_party/libffi/src/x86/
Dffi.c536 char *tramp = closure->tramp; in ffi_prep_closure_loc() local
561 tramp[0] = op; in ffi_prep_closure_loc()
562 *(void **)(tramp + 1) = codeloc; in ffi_prep_closure_loc()
565 tramp[5] = 0xe9; in ffi_prep_closure_loc()
566 *(unsigned *)(tramp + 6) = (unsigned)dest - ((unsigned)codeloc + 10); in ffi_prep_closure_loc()
604 closure->tramp = dest; in ffi_prep_go_closure()
625 char *tramp = closure->tramp; in ffi_prep_raw_closure_loc() local
654 tramp[0] = 0xb8; in ffi_prep_raw_closure_loc()
655 *(void **)(tramp + 1) = codeloc; in ffi_prep_raw_closure_loc()
658 tramp[5] = 0xe9; in ffi_prep_raw_closure_loc()
[all …]
Dffiw64.c207 char *tramp = closure->tramp; in EFI64() local
218 memcpy (tramp, trampoline, sizeof(trampoline)); in EFI64()
219 *(UINT64 *)(tramp + 16) = (uintptr_t)ffi_closure_win64; in EFI64()
241 closure->tramp = ffi_go_closure_win64; in EFI64()
/third_party/libffi/src/alpha/
Dffi.c332 unsigned int *tramp; in ffi_prep_closure_loc() local
337 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
338 tramp[0] = 0x47fb0401; /* mov $27,$1 */ in ffi_prep_closure_loc()
339 tramp[1] = 0xa77b0010; /* ldq $27,16($27) */ in ffi_prep_closure_loc()
340 tramp[2] = 0x6bfb0000; /* jmp $31,($27),0 */ in ffi_prep_closure_loc()
341 tramp[3] = 0x47ff041f; /* nop */ in ffi_prep_closure_loc()
342 *(void **) &tramp[4] = ffi_closure_osf; in ffi_prep_closure_loc()
367 closure->tramp = (void *)ffi_go_closure_osf; in ffi_prep_go_closure()
/third_party/libffi/src/m88k/
Dffi.c372 unsigned int *tramp = (unsigned int *) codeloc; in ffi_prep_closure_loc() local
383 tramp[0] = 0x5d400000 | (((unsigned int)fn) >> 16); in ffi_prep_closure_loc()
385 tramp[1] = 0x5da00000 | ((unsigned int)closure >> 16); in ffi_prep_closure_loc()
387 tramp[2] = 0x594a0000 | (((unsigned int)fn) & 0xffff); in ffi_prep_closure_loc()
389 tramp[3] = 0xf400c40a; in ffi_prep_closure_loc()
391 tramp[4] = 0x59ad0000 | ((unsigned int)closure & 0xffff); in ffi_prep_closure_loc()
/third_party/libffi/src/sparc/
Dffi.c336 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc() local
343 tramp[0] = 0x03000000 | fn >> 10; /* sethi %hi(fn), %g1 */ in ffi_prep_closure_loc()
344 tramp[1] = 0x05000000 | ctx >> 10; /* sethi %hi(ctx), %g2 */ in ffi_prep_closure_loc()
345 tramp[2] = 0x81c06000 | (fn & 0x3ff); /* jmp %g1+%lo(fn) */ in ffi_prep_closure_loc()
346 tramp[3] = 0x8410a000 | (ctx & 0x3ff);/* or %g2, %lo(ctx) */ in ffi_prep_closure_loc()
364 closure->tramp = ffi_go_closure_v8; in ffi_prep_go_closure()
Dffi64.c466 unsigned int *tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc() local
475 tramp[0] = 0x83414000; /* rd %pc, %g1 */ in ffi_prep_closure_loc()
476 tramp[1] = 0xca586010; /* ldx [%g1+16], %g5 */ in ffi_prep_closure_loc()
477 tramp[2] = 0x81c14000; /* jmp %g5 */ in ffi_prep_closure_loc()
478 tramp[3] = 0x01000000; /* nop */ in ffi_prep_closure_loc()
479 *((unsigned long *) &tramp[4]) = fn; in ffi_prep_closure_loc()
497 closure->tramp = ffi_go_closure_v9; in ffi_prep_go_closure()
/third_party/libffi/src/sh/
Dffi.c463 unsigned int *tramp; in ffi_prep_closure_loc() local
469 tramp = (unsigned int *) &closure->tramp[0]; in ffi_prep_closure_loc()
476 tramp[0] = 0xd301d102; in ffi_prep_closure_loc()
477 tramp[1] = 0x0000412b | (insn << 16); in ffi_prep_closure_loc()
479 tramp[0] = 0xd102d301; in ffi_prep_closure_loc()
480 tramp[1] = 0x412b0000 | insn; in ffi_prep_closure_loc()
482 *(void **) &tramp[2] = (void *)codeloc; /* ctx */ in ffi_prep_closure_loc()
483 *(void **) &tramp[3] = (void *)ffi_closure_SYSV; /* funaddr */ in ffi_prep_closure_loc()
/third_party/libffi/src/riscv/
Dffi.c396 uint32_t *tramp = (uint32_t *) &closure->tramp[0]; in ffi_prep_closure_loc() local
405 tramp[0] = 0x00000317; /* auipc t1, 0 (i.e. t0 <- codeloc) */ in ffi_prep_closure_loc()
407 tramp[1] = 0x01033383; /* ld t2, 16(t1) */ in ffi_prep_closure_loc()
409 tramp[1] = 0x01032383; /* lw t2, 16(t1) */ in ffi_prep_closure_loc()
411 tramp[2] = 0x00038067; /* jr t2 */ in ffi_prep_closure_loc()
412 tramp[3] = 0x00000013; /* nop */ in ffi_prep_closure_loc()
413 tramp[4] = fn; in ffi_prep_closure_loc()
414 tramp[5] = fn >> 32; in ffi_prep_closure_loc()
434 closure->tramp = (void *) ffi_go_closure_asm; in ffi_prep_go_closure()
/third_party/python/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi64.c594 volatile unsigned short* tramp; in ffi_prep_closure() local
599 tramp = (volatile unsigned short*)&closure->tramp[0]; in ffi_prep_closure()
601 tramp[0] = 0xbb49; /* mov <code>, %r11 */ in ffi_prep_closure()
602 *(void* volatile*)&tramp[1] = ffi_closure_unix64; in ffi_prep_closure()
603 tramp[5] = 0xba49; /* mov <data>, %r10 */ in ffi_prep_closure()
604 *(void* volatile*)&tramp[6] = closure; in ffi_prep_closure()
608 tramp[10] = cif->flags & (1 << 11) ? 0x49f9 : 0x49f8; in ffi_prep_closure()
609 tramp[11] = 0xe3ff; /* jmp *%r11 */ in ffi_prep_closure()
/third_party/libffi/src/m68k/
Dffi.c334 *(unsigned short *)closure->tramp = 0x207c; in ffi_prep_closure_loc()
335 *(void **)(closure->tramp + 2) = codeloc; in ffi_prep_closure_loc()
336 *(unsigned short *)(closure->tramp + 6) = 0x4ef9; in ffi_prep_closure_loc()
344 *(void **)(closure->tramp + 8) = ffi_closure_struct_SYSV; in ffi_prep_closure_loc()
346 *(void **)(closure->tramp + 8) = ffi_closure_SYSV; in ffi_prep_closure_loc()

12