/netbsd-src/lib/libc/arch/riscv/ |
H A D | genassym.cf | 40 define UC_GREGS_RA offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RA]) 41 define UC_GREGS_SP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_SP]) 42 define UC_GREGS_GP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_GP]) 43 define UC_GREGS_TP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_TP]) 44 define UC_GREGS_T0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T0]) 45 define UC_GREGS_T1 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T1]) 46 define UC_GREGS_T2 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T2]) 47 define UC_GREGS_S0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S0]) 48 define UC_GREGS_S1 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S1]) 49 define UC_GREGS_A0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A0]) [all …]
|
/netbsd-src/lib/libc/arch/hppa/ |
H A D | genassym.cf | 72 define SIZEOF_SIGTRAMP HPPA_FRAME_ROUND(sizeof(siginfo_t) + sizeof(ucontext_t)) 75 define _UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs[0]) 76 define _UC_GREGS_R1 offsetof(ucontext_t, uc_mcontext.__gregs[1]) 77 define _UC_GREGS_R2 offsetof(ucontext_t, uc_mcontext.__gregs[2]) 78 define _UC_GREGS_R3 offsetof(ucontext_t, uc_mcontext.__gregs[3]) 79 define _UC_GREGS_R4 offsetof(ucontext_t, uc_mcontext.__gregs[4]) 80 define _UC_GREGS_R5 offsetof(ucontext_t, uc_mcontext.__gregs[5]) 81 define _UC_GREGS_R6 offsetof(ucontext_t, uc_mcontext.__gregs[6]) 82 define _UC_GREGS_R7 offsetof(ucontext_t, uc_mcontext.__gregs[7]) 83 define _UC_GREGS_R8 offsetof(ucontext_t, uc_mcontext.__gregs[8]) [all …]
|
/netbsd-src/lib/libc/arch/x86_64/ |
H A D | genassym.cf | 30 define UC_GREGS_RAX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RAX]) 31 define UC_GREGS_RDX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RDX]) 32 define UC_GREGS_RCX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RCX]) 33 define UC_GREGS_RBX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RBX]) 34 define UC_GREGS_RSI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RSI]) 35 define UC_GREGS_RDI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RDI]) 36 define UC_GREGS_RBP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RBP]) 37 define UC_GREGS_RSP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RSP]) 38 define UC_GREGS_R8 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R8]) 39 define UC_GREGS_R9 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R9]) [all …]
|
/netbsd-src/sys/arch/usermode/target/arm/ |
H A D | cpu_arm.c | 63 ucontext_t sf_uc; /* actual saved ucontext */ 79 md_syscall_get_syscallnumber(ucontext_t *ucp, uint32_t *code) in md_syscall_get_syscallnumber() 85 md_syscall_getargs(lwp_t *l, ucontext_t *ucp, int nargs, int argsize, in md_syscall_getargs() 93 md_syscall_set_returnargs(lwp_t *l, ucontext_t *ucp, in md_syscall_set_returnargs() 100 md_get_pc(ucontext_t *ucp) in md_get_pc() 107 md_get_sp(ucontext_t *ucp) in md_get_sp() 114 md_syscall_check_opcode(ucontext_t *ucp) in md_syscall_check_opcode() 121 md_syscall_get_opcode(ucontext_t *ucp, uint32_t *opcode) in md_syscall_get_opcode() 127 md_syscall_inc_pc(ucontext_t *ucp, uint32_t opcode) in md_syscall_inc_pc() 133 md_syscall_dec_pc(ucontext_t *ucp, uint32_t opcode) in md_syscall_dec_pc()
|
/netbsd-src/sys/arch/usermode/include/ |
H A D | machdep.h | 29 int md_syscall_check_opcode(ucontext_t *ucp); 30 void md_syscall_get_opcode(ucontext_t *ucp, uint32_t *opcode); 31 void md_syscall_get_syscallnumber(ucontext_t *ucp, uint32_t *code); 32 int md_syscall_getargs(lwp_t *l, ucontext_t *ucp, int nargs, int argsize, 34 void md_syscall_set_returnargs(lwp_t *l, ucontext_t *ucp, 36 void md_syscall_inc_pc(ucontext_t *ucp, uint32_t opcode); 37 void md_syscall_dec_pc(ucontext_t *ucp, uint32_t opcode); 38 register_t md_get_pc(ucontext_t *ucp); 39 register_t md_get_sp(ucontext_t *ucp);
|
H A D | pcb.h | 37 #define TRAPSTACKSIZE (USPACE -2*sizeof(ucontext_t) - 3*sizeof(register_t)) 39 ucontext_t pcb_ucp; /* switchframe */ 40 ucontext_t pcb_userret_ucp;
|
H A D | thunk.h | 102 int thunk_getcontext(ucontext_t *); 103 int thunk_setcontext(const ucontext_t *); 104 void thunk_makecontext(ucontext_t *ucp, void (*func)(void), 106 int thunk_swapcontext(ucontext_t *, ucontext_t *);
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/ |
H A D | ucontext.d | 140 struct ucontext_t in version() 143 ucontext_t* uc_link; in version() 213 struct ucontext_t in version() 216 ucontext_t* uc_link; in version() 258 struct ucontext_t in version() 261 ucontext_t* uc_link; in version() 337 struct ucontext_t in version() 340 ucontext_t* uc_link; in version() 389 struct ucontext_t in version() 392 ucontext_t* uc_link; in version() [all …]
|
/netbsd-src/sys/arch/usermode/target/i386/ |
H A D | cpu_i386.c | 84 ucontext_t *sf_ucp; /* "ucp" argument for handler */ 86 ucontext_t sf_uc; /* actual saved ucontext */ 104 ucontext_t *ucp; in sendsig_siginfo() 142 memcpy(&frame.sf_uc, ucp, sizeof(ucontext_t)); in sendsig_siginfo() 178 ucontext_t *ucp; in setregs() 221 md_syscall_get_syscallnumber(ucontext_t *ucp, uint32_t *code) in md_syscall_get_syscallnumber() 228 md_syscall_getargs(lwp_t *l, ucontext_t *ucp, int nargs, int argsize, in md_syscall_getargs() 242 md_syscall_set_returnargs(lwp_t *l, ucontext_t *ucp, in md_syscall_set_returnargs() 262 md_get_pc(ucontext_t *ucp) in md_get_pc() 271 md_get_sp(ucontext_t *ucp) in md_get_sp() [all …]
|
/netbsd-src/sys/arch/usermode/target/x86_64/ |
H A D | cpu_x86_64.c | 83 ucontext_t sf_uc; /* actual saved ucontext */ 100 ucontext_t *ucp; in sendsig_siginfo() 140 memcpy(&frame.sf_uc, ucp, sizeof(ucontext_t)); in sendsig_siginfo() 180 ucontext_t *ucp; in setregs() 202 md_syscall_get_syscallnumber(ucontext_t *ucp, uint32_t *code) in md_syscall_get_syscallnumber() 209 md_syscall_getargs(lwp_t *l, ucontext_t *ucp, int nargs, int argsize, in md_syscall_getargs() 239 md_syscall_set_returnargs(lwp_t *l, ucontext_t *ucp, in md_syscall_set_returnargs() 259 md_get_pc(ucontext_t *ucp) in md_get_pc() 267 md_get_sp(ucontext_t *ucp) in md_get_sp() 275 md_syscall_check_opcode(ucontext_t *ucp) in md_syscall_check_opcode() [all …]
|
/netbsd-src/sys/sys/ |
H A D | ucontext.h | 68 typedef struct __ucontext ucontext_t; typedef 72 ucontext_t * uc_link; /* context to resume */ 86 #define __UCONTEXT_SIZE sizeof(ucontext_t) 104 void getucontext(struct lwp *, ucontext_t *); 105 int setucontext(struct lwp *, const ucontext_t *); 111 __CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE);
|
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/rs6000/ |
H A D | aix-unwind.h | 117 char bumper [offsetof (ucontext_t, uc_stack) + sizeof (stack_t)]; 125 static ucontext_t * 146 return (ucontext_t *)(context->cfa + 0x70); in ucontext_for() 164 return (ucontext_t *)(context->cfa + 0x70); in ucontext_for() 168 return (ucontext_t *)(context->cfa + 0x40); in ucontext_for() 172 return (ucontext_t *)(context->cfa + 0x40); in ucontext_for() 176 return (ucontext_t *)(context->cfa + 0x40); in ucontext_for() 188 ucontext_t ucontext; in ucontext_for() 218 ucontext_t * uctx = ucontext_for (context); in ppc_aix_fallback_frame_state()
|
/netbsd-src/lib/libc/arch/i386/ |
H A D | genassym.cf | 33 define UC_GREGS_EAX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EAX]) 34 define UC_GREGS_EDX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EDX]) 35 define UC_GREGS_ECX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_ECX]) 36 define UC_GREGS_EBX offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EBX]) 37 define UC_GREGS_ESI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_ESI]) 38 define UC_GREGS_EDI offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EDI]) 39 define UC_GREGS_EBP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EBP]) 40 define UC_GREGS_ESP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_ESP]) 41 define UC_GREGS_EIP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EIP])
|
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/rs6000/ |
H A D | aix-unwind.h | 117 char bumper [offsetof (ucontext_t, uc_stack) + sizeof (stack_t)]; 125 static ucontext_t * 146 return (ucontext_t *)(context->cfa + 0x70); in ucontext_for() 164 return (ucontext_t *)(context->cfa + 0x70); in ucontext_for() 168 return (ucontext_t *)(context->cfa + 0x40); in ucontext_for() 172 return (ucontext_t *)(context->cfa + 0x40); in ucontext_for() 176 return (ucontext_t *)(context->cfa + 0x40); in ucontext_for() 188 ucontext_t ucontext; in ucontext_for() 218 ucontext_t * uctx = ucontext_for (context); in ppc_aix_fallback_frame_state()
|
/netbsd-src/include/ |
H A D | ucontext.h | 39 int getcontext(ucontext_t *) __returns_twice; 40 int setcontext(const ucontext_t *); 46 void makecontext(ucontext_t *, void (*)(), int, ...); 49 int swapcontext(ucontext_t * __restrict, const ucontext_t * __restrict);
|
/netbsd-src/tests/lib/libc/sys/ |
H A D | t_ucontext.c | 47 ucontext_t u, v, w; in ATF_TC_BODY() 80 ucontext_t u; in ATF_TC_BODY() 95 ucontext_t u; in ATF_TC_BODY() 110 ucontext_t u; in ATF_TC_BODY() 125 ucontext_t u; in ATF_TC_BODY()
|
H A D | t_lwp_create.c | 71 static void ARCH##_##NAME(ucontext_t *); \ 81 ucontext_t uc; \ 92 static void ARCH##_##NAME(ucontext_t *uc) \ 105 ucontext_t uc; in ATF_TC_BODY() 131 ucontext_t uc; in ATF_TC_BODY()
|
/netbsd-src/lib/libc/arch/m68k/ |
H A D | genassym.cf | 37 define UC_LINK offsetof(ucontext_t, uc_link) 38 define UC_SIGMASK offsetof(ucontext_t, uc_sigmask) 39 define UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs[0]) 40 define UC_MCONTEXT_D0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_D0]) 41 define UC_MCONTEXT_SP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A7]) 42 define UC_MCONTEXT_PC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC]) 43 define UC_SIZE sizeof(ucontext_t)
|
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/ |
H A D | hwprofile.c | 105 static void collector_record_counter (ucontext_t*, 135 static ucontext_t expr_dummy_uc; // used for hacked "collector" frames 136 static ucontext_t expr_out_of_range_uc; // used for "out-of-range" frames 137 static ucontext_t expr_frozen_uc; // used for "frozen" frames 138 static ucontext_t expr_nopc_uc; // used for not-program-related frames 139 static ucontext_t expr_lostcounts_uc; // used for lost_counts frames 536 collector_record_counter_internal (ucontext_t *ucp, int timecvt, in collector_record_counter_internal() 569 collector_record_counter (ucontext_t *ucp, int timecvt, ABST_type ABS_memop, in collector_record_counter() 636 ucontext_t uctxmem; in collector_sigemt_handler() 638 ucontext_t *uctx = &uctxmem; in collector_sigemt_handler() [all …]
|
/netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/ |
H A D | hwprofile.c | 105 static void collector_record_counter (ucontext_t*, 135 static ucontext_t expr_dummy_uc; // used for hacked "collector" frames 136 static ucontext_t expr_out_of_range_uc; // used for "out-of-range" frames 137 static ucontext_t expr_frozen_uc; // used for "frozen" frames 138 static ucontext_t expr_nopc_uc; // used for not-program-related frames 139 static ucontext_t expr_lostcounts_uc; // used for lost_counts frames 536 collector_record_counter_internal (ucontext_t *ucp, int timecvt, in collector_record_counter_internal() 569 collector_record_counter (ucontext_t *ucp, int timecvt, ABST_type ABS_memop, in collector_record_counter() 636 ucontext_t uctxmem; in collector_sigemt_handler() 638 ucontext_t *uctx = &uctxmem; in collector_sigemt_handler() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_linux.cc | 1821 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() 1836 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() 1845 using Context = ucontext_t; 1871 ucontext_t *nucontext = (ucontext_t *)ucontext; in GetWriteFlag() 1959 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() 1964 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1969 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1974 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1981 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1991 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() [all …]
|
/netbsd-src/lib/libc/arch/vax/ |
H A D | genassym.cf | 36 define UC_LEN sizeof(ucontext_t) 37 define UC_FLAGS offsetof(ucontext_t, uc_flags) 38 define UC_LINK offsetof(ucontext_t, uc_link) 39 define UC_STACK offsetof(ucontext_t, uc_stack) 40 define UC_SIGMASK offsetof(ucontext_t, uc_sigmask) 41 define UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs)
|
/netbsd-src/lib/libpthread/ |
H A D | pthread_specific.c | 49 int pthread_setcontext(const ucontext_t *); 104 pthread_setcontext(const ucontext_t *ucp) in pthread_setcontext() 107 ucontext_t uc; in pthread_setcontext()
|
/netbsd-src/lib/libc/arch/mips/ |
H A D | genassym.cf | 39 define _UC_GREGS_V0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_V0]) 40 define _UC_GREGS_GP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_GP]) 41 define _UC_GREGS_SP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_SP]) 42 define _UC_GREGS_EPC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_EPC]) 43 define _UC_GREGS offsetof(ucontext_t, uc_mcontext.__gregs[0]) 44 define _UC_LINK offsetof(ucontext_t, uc_link) 45 define UCONTEXT_SIZE sizeof(ucontext_t)
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_linux.cc | 1753 static bool Aarch64GetESR(ucontext_t *ucontext, u64 *esr) { in Aarch64GetESR() 1772 using Context = ucontext_t; 1869 ucontext_t *ucontext = (ucontext_t *)context; in GetPcSpBp() 1874 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1879 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1884 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1891 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1901 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1908 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() 1918 ucontext_t *ucontext = (ucontext_t*)context; in GetPcSpBp() [all …]
|