/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | 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);
|
H A D | makectxt.c | 52 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) argument 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 [all...] |
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | 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);
|
H A D | makectxt.c | 76 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) argument 83 ucp->uc_mcontext.gregs[EIP] = (greg_t)func; 87 tsp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + 88 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); 99 ucp->uc_mcontext.gregs[UESP] = (greg_t)sp;
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | getpeerucred.c | 39 getpeerucred(int fd, ucred_t **ucp) argument 41 ucred_t *uc = *ucp; 50 if (*ucp == NULL) 54 *ucp = uc;
|
H A D | ucontext.c | 43 __setcontext(const ucontext_t *ucp) argument 45 return (syscall(SYS_context, 1, ucp));
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | getctxt.c | 40 getcontext(ucontext_t *ucp) argument 44 ucp->uc_flags = UC_ALL; 45 if (__getcontext(ucp)) 55 reg = ucp->uc_mcontext.gregs;
|
H A D | makectxt.c | 55 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) argument 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, ...) argument 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));
|
/illumos-gate/usr/src/lib/libc/sparcv9/gen/ |
H A D | getctxt.c | 40 getcontext(ucontext_t *ucp) argument 44 ucp->uc_flags = UC_ALL; 45 if (__getcontext(ucp)) 55 reg = ucp->uc_mcontext.gregs;
|
H A D | makectxt.c | 55 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) argument 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, ...) argument 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));
|
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/ |
H A D | kmdb_makecontext.c | 44 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, argument 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;
|
/illumos-gate/usr/src/lib/libc/i386/threads/ |
H A D | machdep.c | 88 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), argument 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 218 ucontext_t *ucp = (ucontext_t *)env; local [all...] |
/illumos-gate/usr/src/uts/intel/ia32/syscall/ |
H A D | getcontext.c | 54 savecontext(ucontext_t *ucp, const k_sigset_t *mask) argument 65 bzero(&ucp->uc_mcontext.fpregs, sizeof (ucontext_t) - 68 ucp->uc_flags = UC_ALL; 69 ucp->uc_link = (struct ucontext *)lwp->lwp_oldcontext; 78 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack, 79 sizeof (ucp->uc_stack)) != 0 || 80 ucp->uc_stack.ss_size == 0) { 83 ucp->uc_stack = lwp->lwp_sigaltstack; 85 ucp->uc_stack.ss_sp = p->p_usrstack - p->p_stksize; 86 ucp 135 restorecontext(ucontext_t *ucp) argument 184 ucontext_t *ucp; local 257 savecontext32(ucontext32_t *ucp, const k_sigset_t *mask) argument 322 ucontext32_t *ucp; local [all...] |
/illumos-gate/usr/src/cmd/mdb/intel/amd64/kmdb/ |
H A D | kmdb_makecontext.c | 43 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, argument 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;
|
H A D | kmdb_setcontext.s | 41 kmdb_setcontext(ucontext_t *ucp)
|
/illumos-gate/usr/src/ucblib/libucb/sparc/sys/ |
H A D | signal.c | 103 _sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 105 ucbsigvechandler(sig, sip, ucp); 110 ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 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 341 ucontext_t uc, *ucp; local [all...] |
/illumos-gate/usr/src/cmd/csh/sparc/ |
H A D | signal.c | 65 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 73 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); 74 sc.sc_mask = set2mask(&ucp->uc_sigmask); 79 sc.sc_sp = ucp->uc_mcontext.gregs[REG_O6]; 80 sc.sc_pc = ucp->uc_mcontext.gregs[REG_PC]; 81 sc.sc_npc = ucp->uc_mcontext.gregs[REG_nPC]; 82 sc.sc_psr = ucp->uc_mcontext.gregs[REG_PSR]; 83 sc.sc_g1 = ucp->uc_mcontext.gregs[REG_G1]; 84 sc.sc_o0 = ucp->uc_mcontext.gregs[REG_O0]; 85 if (ucp [all...] |
/illumos-gate/usr/src/cmd/mdb/intel/ia32/kmdb/ |
H A D | kmdb_makecontext.c | 43 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, argument 52 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 53 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)stack;
|
H A D | kmdb_setcontext.s | 41 kmdb_setcontext(ucontext_t *ucp)
|
/illumos-gate/usr/src/uts/sparc/syscall/ |
H A D | getcontext.c | 57 savecontext(ucontext_t *ucp, const k_sigset_t *mask) argument 66 bzero(&ucp->uc_mcontext.fpregs.fpu_en, sizeof (ucontext_t) - 72 (&ucp->uc_flags)[1] = 0; 73 (&ucp->uc_stack.ss_flags)[1] = 0; 81 ucp->uc_flags = UC_ALL; 82 ucp->uc_link = (ucontext_t *)lwp->lwp_oldcontext; 91 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack, 92 sizeof (ucp->uc_stack)) != 0 || 93 ucp->uc_stack.ss_size == 0) { 96 ucp 121 restorecontext(ucontext_t *ucp) argument 185 ucontext_t *ucp; local 354 savecontext32(ucontext32_t *ucp, const k_sigset_t *mask, struct fq32 *dfq) argument 435 ucontext32_t *ucp; local [all...] |
/illumos-gate/usr/src/ucblib/libucb/i386/sys/ |
H A D | signal.c | 86 _sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 89 ucbsigvechandler(sig, sip, ucp); 93 ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 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 [all...] |
/illumos-gate/usr/src/lib/libc/amd64/threads/ |
H A D | machdep.c | 68 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), argument 74 (void) memset(ucp, 0, sizeof (*ucp)); 77 ucp->uc_mcontext.gregs[REG_FSBASE] = (greg_t)ulwp; 78 ucp->uc_mcontext.gregs[REG_FS] = 0; /* null selector indicates fsbase */ 81 ucp->uc_mcontext.gregs[REG_SS] = UDS_SEL; 91 ucp->uc_flags |= UC_CPU; 92 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)ulwp; 93 ucp->uc_mcontext.gregs[REG_RIP] = (greg_t)func; 94 ucp 176 ucontext_t *ucp = (ucontext_t *)env; local [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | stack.c | 85 stack_violation(int sig, const siginfo_t *sip, const ucontext_t *ucp) argument 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];
|
/illumos-gate/usr/src/cmd/csh/i386/ |
H A D | signal.c | 65 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) argument 73 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); 74 sc.sc_mask = set2mask(&ucp->uc_sigmask); 79 sc.sc_sp = (int) ucp->uc_mcontext.gregs[UESP]; 80 sc.sc_pc = (int) ucp->uc_mcontext.gregs[EIP]; 81 sc.sc_ps = (int) ucp->uc_mcontext.gregs[EFL]; 82 sc.sc_eax = (int) ucp->uc_mcontext.gregs[EAX]; 83 sc.sc_edx = (int) ucp->uc_mcontext.gregs[EDX]; 102 ucp->uc_stack.ss_flags |= SS_ONSTACK; 104 ucp [all...] |
/illumos-gate/usr/src/lib/libc/sparc/threads/ |
H A D | machdep.c | 63 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), argument 69 (void) memset(ucp, 0, sizeof (*ucp)); 79 ucp->uc_flags |= UC_CPU; 80 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; 81 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; 82 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)ulwp; 83 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); 84 ucp->uc_mcontext.gregs[REG_O7] = (greg_t)_lwp_start; 85 ucp [all...] |