Searched defs:ucp (Results 1 - 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dgetctxt.c40 getcontext(ucontext_t *ucp) argument
44 ucp->uc_flags = UC_ALL;
45 if (__getcontext(ucp))
55 reg = ucp->uc_mcontext.gregs;
H A Dmakectxt.c55 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 Dgetctxt.c40 getcontext(ucontext_t *ucp) argument
44 ucp->uc_flags = UC_ALL;
45 if (__getcontext(ucp))
55 reg = ucp->uc_mcontext.gregs;
H A Dmakectxt.c55 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/amd64/gen/
H A Dsiglongjmp.c41 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 Dmakectxt.c52 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 Dsiglongjmp.c44 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 Dmakectxt.c76 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 Dgetpeerucred.c39 getpeerucred(int fd, ucred_t **ucp) argument
41 ucred_t *uc = *ucp;
50 if (*ucp == NULL)
54 *ucp = uc;
H A Ducontext.c43 __setcontext(const ucontext_t *ucp) argument
45 return (syscall(SYS_context, 1, ucp));
/illumos-gate/usr/src/cmd/mdb/intel/amd64/kmdb/
H A Dkmdb_makecontext.c43 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;
/illumos-gate/usr/src/cmd/mdb/intel/ia32/kmdb/
H A Dkmdb_makecontext.c43 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;
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/
H A Dkmdb_makecontext.c44 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/cmd/syseventd/daemons/syseventd/
H A Dsysevent_signal.c39 sig_stub(int sig, siginfo_t *sip, void *ucp) argument
41 sig_handlers[sig](sig, sip, (ucontext_t *)ucp, sig_data[sig]);
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwp_create.c66 syslwp_create(ucontext_t *ucp, int flags, id_t *new_lwp) argument
90 if (copyin(ucp, &uc, sizeof (ucontext_t)))
103 if (copyin(ucp, &uc32, sizeof (ucontext32_t)))
177 lwp->lwp_arg[0] = (long)ucp;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstack.c85 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/lib/libc/sparc/threads/
H A Dmachdep.c63 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...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_signal.c40 sig_stub(int sig, siginfo_t *sip, void *ucp) argument
42 sig_handlers[sig](sig, sip, (ucontext_t *)ucp, sig_data[sig]);
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Darc4random_forksig.c44 siguser_fork(int sig, siginfo_t *sip, void *ucp) argument
/illumos-gate/usr/src/uts/intel/ia32/syscall/
H A Dgetcontext.c54 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/lib/libproc/common/
H A Dpr_getsockname.c176 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp) argument
182 ucred_t *uc = *ucp;
185 return (getpeerucred(fd, ucp));
218 if (*ucp == NULL)
223 *ucp = uc;
/illumos-gate/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c68 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/cmd/fm/fmd/common/
H A Dfmd_rpc.c242 ucred_t *ucp = alloca(ucred_size()); local
253 if (svc_getcallerucred(rqp->rq_xprt, &ucp) != 0 ||
254 (psp = ucred_getprivset(ucp, PRIV_EFFECTIVE)) == NULL)
/illumos-gate/usr/src/uts/common/os/
H A Dmain.c148 caddr32_t ucp; local
210 * Since we know the value of ucp at the beginning of this process,
212 * place in userland: argv[i] = ucp - sarg(i), where ucp is the
216 ucp = (caddr32_t)(uintptr_t)p->p_usrstack;
227 argv[argc++] = ucp - (alen - sarg);
234 ucp -= alen;
235 error |= copyout(scratchargs, (caddr_t)(uintptr_t)ucp, alen);
237 uap = (caddr32_t *)P2ALIGN((uintptr_t)ucp, sizeof (caddr32_t));
/illumos-gate/usr/src/cmd/csh/i386/
H A Dsignal.c65 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...]

Completed in 118 milliseconds

123