| /onnv/onnv-gate/usr/src/lib/libc/amd64/gen/ |
| siglongjmp.c | 41 ucontext_t *ucp = (ucontext_t *)env; local 44 ucp->uc_mcontext.gregs[REG_R0] = val; 46 ucp->uc_mcontext.gregs[REG_R0] = 1; 48 (void) setcontext(ucp);
|
| makectxt.c | 52 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) 62 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 72 sp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + 73 ucp->uc_stack.ss_size - size) & ~(STACK_ENTRY_ALIGN - 1)); 86 ucp->uc_mcontext.gregs[REG_RDI] = tmp; 89 ucp->uc_mcontext.gregs[REG_RSI] = tmp; 92 ucp->uc_mcontext.gregs[REG_RDX] = tmp; 95 ucp->uc_mcontext.gregs[REG_RCX] = tmp; 98 ucp->uc_mcontext.gregs[REG_R8] = tmp; 101 ucp->uc_mcontext.gregs[REG_R9] = tmp [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/i386/gen/ |
| siglongjmp.c | 44 ucontext_t *ucp = (ucontext_t *)env; local 47 ucp->uc_mcontext.gregs[EAX] = val; 49 ucp->uc_mcontext.gregs[EAX] = 1; 51 (void) setcontext(ucp);
|
| makectxt.c | 52 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) 59 ucp->uc_mcontext.gregs[EIP] = (greg_t)func; 63 sp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + 64 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); 78 ucp->uc_mcontext.gregs[UESP] = (greg_t)sp;
|
| /onnv/onnv-gate/usr/src/lib/libc/port/sys/ |
| getpeerucred.c | 39 getpeerucred(int fd, ucred_t **ucp) 41 ucred_t *uc = *ucp; 50 if (*ucp == NULL) 54 *ucp = uc;
|
| ucontext.c | 43 __setcontext(const ucontext_t *ucp) 45 return (syscall(SYS_context, 1, ucp));
|
| /onnv/onnv-gate/usr/src/lib/libc/sparc/gen/ |
| getctxt.c | 40 getcontext(ucontext_t *ucp) 44 ucp->uc_flags = UC_ALL; 45 if (__getcontext(ucp)) 55 reg = ucp->uc_mcontext.gregs;
|
| makectxt.c | 55 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) 64 reg = ucp->uc_mcontext.gregs; 81 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp - size) & 108 __makecontext_v2(ucontext_t *ucp, void (*func)(), int argc, ...) 117 reg = ucp->uc_mcontext.gregs; 128 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp + 129 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1));
|
| /onnv/onnv-gate/usr/src/lib/libc/sparcv9/gen/ |
| getctxt.c | 40 getcontext(ucontext_t *ucp) 44 ucp->uc_flags = UC_ALL; 45 if (__getcontext(ucp)) 55 reg = ucp->uc_mcontext.gregs;
|
| makectxt.c | 55 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) 64 reg = ucp->uc_mcontext.gregs; 81 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp - size) & 108 __makecontext_v2(ucontext_t *ucp, void (*func)(), int argc, ...) 117 reg = ucp->uc_mcontext.gregs; 128 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp + 129 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1));
|
| /onnv/onnv-gate/usr/src/cmd/mdb/sparc/kmdb/ |
| kmdb_makecontext.c | 44 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, 58 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 59 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; 60 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)arg; 61 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); 62 ucp->uc_mcontext.gregs[REG_O7] = NULL; 63 ucp->uc_mcontext.gregs[REG_G7] = NULL;
|
| /onnv/onnv-gate/usr/src/lib/libc/i386/threads/ |
| machdep.c | 88 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), 110 (void) memset(ucp, 0, sizeof (*ucp)); 111 ucp->uc_mcontext.gregs[FS] = fs; 112 ucp->uc_mcontext.gregs[ES] = es; 113 ucp->uc_mcontext.gregs[DS] = ds; 114 ucp->uc_mcontext.gregs[CS] = cs; 115 ucp->uc_mcontext.gregs[SS] = ss; 126 ucp->uc_mcontext.gregs[ESP] = (greg_t)ulwp; 127 ucp->uc_mcontext.gregs[GS] = (greg_t)LWPGS_SEL 218 ucontext_t *ucp = (ucontext_t *)env; local [all...] |
| /onnv/onnv-gate/usr/src/uts/intel/ia32/syscall/ |
| getcontext.c | 53 savecontext(ucontext_t *ucp, k_sigset_t mask) 64 bzero(&ucp->uc_mcontext.fpregs, sizeof (ucontext_t) - 67 ucp->uc_flags = UC_ALL; 68 ucp->uc_link = (struct ucontext *)lwp->lwp_oldcontext; 77 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack, 78 sizeof (ucp->uc_stack)) != 0 || 79 ucp->uc_stack.ss_size == 0) { 82 ucp->uc_stack = lwp->lwp_sigaltstack; 84 ucp->uc_stack.ss_sp = p->p_usrstack - p->p_stksize; 85 ucp->uc_stack.ss_size = p->p_stksize 183 ucontext_t *ucp; local 317 ucontext32_t *ucp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/mdb/intel/amd64/kmdb/ |
| kmdb_makecontext.c | 43 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, 51 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 52 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)stack; 53 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)arg;
|
| kmdb_setcontext.s | 41 kmdb_setcontext(ucontext_t *ucp)
|
| /onnv/onnv-gate/usr/src/ucblib/libucb/sparc/sys/ |
| signal.c | 103 _sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) 105 ucbsigvechandler(sig, sip, ucp); 110 ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) 119 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); 120 sc.sc_mask = set2mask(&ucp->uc_sigmask); 130 ucp->uc_mcontext.gregs[REG_PC] = 131 ucp->uc_mcontext.gregs[REG_nPC]; 132 ucp->uc_mcontext.gregs[REG_nPC] += 4; 134 sc.sc_sp = ucp->uc_mcontext.gregs[REG_SP]; 135 sc.sc_pc = ucp->uc_mcontext.gregs[REG_PC] 341 ucontext_t uc, *ucp; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/csh/sparc/ |
| signal.c | 67 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) 75 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); 76 sc.sc_mask = set2mask(&ucp->uc_sigmask); 81 sc.sc_sp = ucp->uc_mcontext.gregs[REG_O6]; 82 sc.sc_pc = ucp->uc_mcontext.gregs[REG_PC]; 83 sc.sc_npc = ucp->uc_mcontext.gregs[REG_nPC]; 84 sc.sc_psr = ucp->uc_mcontext.gregs[REG_PSR]; 85 sc.sc_g1 = ucp->uc_mcontext.gregs[REG_G1]; 86 sc.sc_o0 = ucp->uc_mcontext.gregs[REG_O0]; 87 if (ucp->uc_mcontext.gwins != (gwindows_t *)0) [all...] |
| /onnv/onnv-gate/usr/src/cmd/mdb/intel/ia32/kmdb/ |
| kmdb_makecontext.c | 43 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, 52 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 53 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)stack;
|
| kmdb_setcontext.s | 41 kmdb_setcontext(ucontext_t *ucp)
|
| /onnv/onnv-gate/usr/src/uts/sparc/syscall/ |
| getcontext.c | 56 savecontext(ucontext_t *ucp, k_sigset_t mask) 65 bzero(&ucp->uc_mcontext.fpregs.fpu_en, sizeof (ucontext_t) - 71 (&ucp->uc_flags)[1] = 0; 72 (&ucp->uc_stack.ss_flags)[1] = 0; 80 ucp->uc_flags = UC_ALL; 81 ucp->uc_link = (ucontext_t *)lwp->lwp_oldcontext; 90 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack, 91 sizeof (ucp->uc_stack)) != 0 || 92 ucp->uc_stack.ss_size == 0) { 95 ucp->uc_stack = lwp->lwp_sigaltstack 184 ucontext_t *ucp; local 430 ucontext32_t *ucp; local [all...] |
| /onnv/onnv-gate/usr/src/ucblib/libucb/i386/sys/ |
| signal.c | 86 _sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) 89 ucbsigvechandler(sig, sip, ucp); 93 ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) 101 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); 102 sc.sc_mask = set2mask(&ucp->uc_sigmask); 105 sc.sc_sp = (long)ucp->uc_mcontext.gregs[REG_RSP]; 106 sc.sc_pc = (long)ucp->uc_mcontext.gregs[REG_RIP]; 107 sc.sc_ps = (long)ucp->uc_mcontext.gregs[REG_RFL]; 108 sc.sc_r0 = (long)ucp->uc_mcontext.gregs[REG_RAX]; 109 sc.sc_r1 = (long)ucp->uc_mcontext.gregs[REG_RDX] [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/amd64/threads/ |
| machdep.c | 69 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), 75 (void) memset(ucp, 0, sizeof (*ucp)); 78 ucp->uc_mcontext.gregs[REG_FSBASE] = (greg_t)ulwp; 79 ucp->uc_mcontext.gregs[REG_FS] = 0; /* null selector indicates fsbase */ 82 ucp->uc_mcontext.gregs[REG_SS] = UDS_SEL; 92 ucp->uc_flags |= UC_CPU; 93 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)ulwp; 94 ucp->uc_mcontext.gregs[REG_RIP] = (greg_t)func; 95 ucp->uc_mcontext.gregs[REG_RSP] = (greg_t)stack 177 ucontext_t *ucp = (ucontext_t *)env; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/port/gen/ |
| stack.c | 85 stack_violation(int sig, const siginfo_t *sip, const ucontext_t *ucp) 92 sip == NULL || ucp == NULL || SI_FROMUSER(sip)) 96 * ucp has the correct view of the stack when the signal was raised. 98 base = (uintptr_t)ucp->uc_stack.ss_sp; 99 size = ucp->uc_stack.ss_size; 101 addr = ucp->uc_mcontext.gregs[REG_SP] + STACK_BIAS; 103 addr = ucp->uc_mcontext.gregs[REG_SP];
|
| /onnv/onnv-gate/usr/src/cmd/csh/i386/ |
| signal.c | 67 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) 75 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); 76 sc.sc_mask = set2mask(&ucp->uc_sigmask); 81 sc.sc_sp = (int) ucp->uc_mcontext.gregs[UESP]; 82 sc.sc_pc = (int) ucp->uc_mcontext.gregs[EIP]; 83 sc.sc_ps = (int) ucp->uc_mcontext.gregs[EFL]; 84 sc.sc_eax = (int) ucp->uc_mcontext.gregs[EAX]; 85 sc.sc_edx = (int) ucp->uc_mcontext.gregs[EDX]; 104 ucp->uc_stack.ss_flags |= SS_ONSTACK; 106 ucp->uc_stack.ss_flags &= ~SS_ONSTACK [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/sparc/threads/ |
| machdep.c | 64 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), 70 (void) memset(ucp, 0, sizeof (*ucp)); 80 ucp->uc_flags |= UC_CPU; 81 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 82 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; 83 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)ulwp; 84 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); 85 ucp->uc_mcontext.gregs[REG_O7] = (greg_t)_lwp_start; 86 ucp->uc_mcontext.gregs[REG_G7] = (greg_t)ulwp [all...] |