Home
last modified time | relevance | path

Searched refs:ucp (Results 1 – 25 of 147) sorted by relevance

123456

/illumos-gate/usr/src/uts/intel/syscall/
H A Dgetcontext.c136 ucp->uc_flags = UC_ALL; in savecontext()
292 ucontext_t *ucp; in getsetcontext() local
337 ucp = arg; in getsetcontext()
353 ucp = arg; in getsetcontext()
354 if (ucp == NULL) in getsetcontext()
441 ucp->uc_flags = UC_ALL; in savecontext32()
450 ucp->uc_stack.ss_sp = in savecontext32()
521 ucontext32_t *ucp; in getsetcontext32() local
547 ucp = arg; in getsetcontext32()
562 ucp = arg; in getsetcontext32()
[all …]
/illumos-gate/usr/src/uts/sparc/syscall/
H A Dgetcontext.c72 (&ucp->uc_flags)[1] = 0; in savecontext()
81 ucp->uc_flags = UC_ALL; in savecontext()
185 ucontext_t *ucp; in getsetcontext() local
224 ucp = arg; in getsetcontext()
225 if (ucp == NULL) in getsetcontext()
378 ucp->uc_flags = UC_ALL; in savecontext32()
393 ucp->uc_stack.ss_sp = in savecontext32()
399 ucp->uc_stack.ss_sp = in savecontext32()
435 ucontext32_t *ucp; in getsetcontext32() local
474 ucp = arg; in getsetcontext32()
[all …]
/illumos-gate/usr/src/lib/libc/i386/threads/
H A Dmachdep.c110 (void) memset(ucp, 0, sizeof (*ucp)); in setup_context()
111 ucp->uc_mcontext.gregs[FS] = fs; in setup_context()
112 ucp->uc_mcontext.gregs[ES] = es; in setup_context()
113 ucp->uc_mcontext.gregs[DS] = ds; in setup_context()
114 ucp->uc_mcontext.gregs[CS] = cs; in setup_context()
115 ucp->uc_mcontext.gregs[SS] = ss; in setup_context()
137 ucp->uc_flags |= UC_CPU; in setup_context()
221 ucp->uc_link = self->ul_siglink; in __csigsetjmp()
225 ucp->uc_stack.ss_sp = in __csigsetjmp()
228 ucp->uc_stack.ss_flags = 0; in __csigsetjmp()
[all …]
/illumos-gate/usr/src/ucblib/libucb/sparc/sys/
H A Dsignal.c101 ucbsigvechandler(sig, sip, ucp); in _sigvechandler()
126 ucp->uc_mcontext.gregs[REG_PC] = in ucbsigvechandler()
152 sc.sc_wbcnt = (int)(sizeof (*ucp)); in ucbsigvechandler()
154 sc.sc_spbuf[1] = (char *)ucp; in ucbsigvechandler()
312 ucp->uc_mcontext.fpregs.fpu_q++; in ucbsigvechandler()
317 (void) setcontext(ucp); in ucbsigvechandler()
337 ucontext_t uc, *ucp; in __sigcleanup() local
354 ucp = &uc; in __sigcleanup()
355 (void) getcontext(ucp); in __sigcleanup()
378 ucp->uc_mcontext.fpregs.fpu_q++; in __sigcleanup()
[all …]
/illumos-gate/usr/src/lib/libc/amd64/gen/
H A Dmakectxt.c91 ucp->uc_mcontext.gregs[REG_RDI] = tmp; in makecontext()
94 ucp->uc_mcontext.gregs[REG_RSI] = tmp; in makecontext()
103 ucp->uc_mcontext.gregs[REG_R8] = tmp; in makecontext()
106 ucp->uc_mcontext.gregs[REG_R9] = tmp; in makecontext()
143 ucontext_t *ucp; in ucontext_alloc() local
175 ucp = calloc(1, to_alloc); in ucontext_alloc()
176 if (ucp == NULL) { in ucontext_alloc()
187 uintptr_t addr = (uintptr_t)ucp; in ucontext_alloc()
191 return (ucp); in ucontext_alloc()
195 ucontext_free(ucontext_t *ucp) in ucontext_free() argument
[all …]
H A Dsiglongjmp.c47 ucontext_t *ucp = SIGJMP2UCONTEXT(env); in siglongjmp() local
50 ucp->uc_mcontext.gregs[REG_R0] = val; in siglongjmp()
52 ucp->uc_mcontext.gregs[REG_R0] = 1; in siglongjmp()
58 (void) setcontext(ucp); in siglongjmp()
/illumos-gate/usr/src/cmd/csh/sparc/
H A Dsignal.c74 sc.sc_mask = set2mask(&ucp->uc_sigmask); in sigvechandler()
79 sc.sc_sp = ucp->uc_mcontext.gregs[REG_O6]; in sigvechandler()
80 sc.sc_pc = ucp->uc_mcontext.gregs[REG_PC]; in sigvechandler()
83 sc.sc_g1 = ucp->uc_mcontext.gregs[REG_G1]; in sigvechandler()
84 sc.sc_o0 = ucp->uc_mcontext.gregs[REG_O0]; in sigvechandler()
114 ucp->uc_stack.ss_flags |= SS_ONSTACK; in sigvechandler()
116 ucp->uc_stack.ss_flags &= ~SS_ONSTACK; in sigvechandler()
117 mask2set(sc.sc_mask, &ucp->uc_sigmask); in sigvechandler()
122 ucp->uc_mcontext.gregs[REG_O6] = sc.sc_sp; in sigvechandler()
123 ucp->uc_mcontext.gregs[REG_PC] = sc.sc_pc; in sigvechandler()
[all …]
/illumos-gate/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c74 (void) memset(ucp, 0, sizeof (*ucp)); in setup_context()
81 ucp->uc_mcontext.gregs[REG_SS] = UDS_SEL; in setup_context()
91 ucp->uc_flags |= UC_CPU; in setup_context()
175 ucontext_t *ucp = SIGJMP2UCONTEXT(env); in __csigsetjmp() local
178 ucp->uc_link = self->ul_siglink; in __csigsetjmp()
180 ucp->uc_stack = self->ul_ustack; in __csigsetjmp()
182 ucp->uc_stack.ss_sp = in __csigsetjmp()
185 ucp->uc_stack.ss_flags = 0; in __csigsetjmp()
187 ucp->uc_flags = UC_STACK | UC_CPU; in __csigsetjmp()
189 ucp->uc_flags |= UC_SIGMASK; in __csigsetjmp()
[all …]
/illumos-gate/usr/src/lib/libc/i386/gen/
H A Dmakectxt.c90 ucp->uc_mcontext.gregs[EIP] = (greg_t)func; in makecontext()
94 tsp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + in makecontext()
106 ucp->uc_mcontext.gregs[UESP] = (greg_t)sp; in makecontext()
139 ucontext_t *ucp; in ucontext_alloc() local
171 ucp = calloc(1, to_alloc); in ucontext_alloc()
172 if (ucp == NULL) { in ucontext_alloc()
177 uintptr_t addr = (uintptr_t)ucp; in ucontext_alloc()
178 ucp->uc_xsave = addr + sizeof (ucontext_t); in ucontext_alloc()
181 return (ucp); in ucontext_alloc()
185 ucontext_free(ucontext_t *ucp) in ucontext_free() argument
[all …]
H A Dsiglongjmp.c50 ucontext_t *ucp = (ucontext_t *)env; in siglongjmp() local
53 ucp->uc_mcontext.gregs[EAX] = val; in siglongjmp()
55 ucp->uc_mcontext.gregs[EAX] = 1; in siglongjmp()
61 (void) setcontext(ucp); in siglongjmp()
/illumos-gate/usr/src/ucblib/libucb/i386/sys/
H A Dsignal.c89 ucbsigvechandler(sig, sip, ucp); in _sigvechandler()
102 sc.sc_mask = set2mask(&ucp->uc_sigmask); in ucbsigvechandler()
112 sc.sc_pc = (int)ucp->uc_mcontext.gregs[EIP]; in ucbsigvechandler()
113 sc.sc_ps = (int)ucp->uc_mcontext.gregs[EFL]; in ucbsigvechandler()
114 sc.sc_r0 = (int)ucp->uc_mcontext.gregs[EAX]; in ucbsigvechandler()
115 sc.sc_r1 = (int)ucp->uc_mcontext.gregs[EDX]; in ucbsigvechandler()
171 ucp->uc_stack.ss_flags |= SS_ONSTACK; in ucbsigvechandler()
173 ucp->uc_stack.ss_flags &= ~SS_ONSTACK; in ucbsigvechandler()
174 mask2set(sc.sc_mask, &ucp->uc_sigmask); in ucbsigvechandler()
184 ucp->uc_mcontext.gregs[EIP] = (int)sc.sc_pc; in ucbsigvechandler()
[all …]
/illumos-gate/usr/src/cmd/csh/i386/
H A Dsignal.c74 sc.sc_mask = set2mask(&ucp->uc_sigmask); in sigvechandler()
79 sc.sc_sp = (int) ucp->uc_mcontext.gregs[UESP]; in sigvechandler()
80 sc.sc_pc = (int) ucp->uc_mcontext.gregs[EIP]; in sigvechandler()
81 sc.sc_ps = (int) ucp->uc_mcontext.gregs[EFL]; in sigvechandler()
82 sc.sc_eax = (int) ucp->uc_mcontext.gregs[EAX]; in sigvechandler()
102 ucp->uc_stack.ss_flags |= SS_ONSTACK; in sigvechandler()
104 ucp->uc_stack.ss_flags &= ~SS_ONSTACK; in sigvechandler()
105 mask2set(sc.sc_mask, &ucp->uc_sigmask); in sigvechandler()
111 ucp->uc_mcontext.gregs[EIP] = (int) sc.sc_pc; in sigvechandler()
112 ucp->uc_mcontext.gregs[EFL] = (int) sc.sc_ps; in sigvechandler()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/threads/
H A Dmachdep.c63 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), in setup_context() argument
69 (void) memset(ucp, 0, sizeof (*ucp)); in setup_context()
80 ucp->uc_flags |= UC_CPU; in setup_context()
81 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in setup_context()
82 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; in setup_context()
83 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)ulwp; in setup_context()
84 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); in setup_context()
85 ucp->uc_mcontext.gregs[REG_O7] = (greg_t)_lwp_start; in setup_context()
86 ucp->uc_mcontext.gregs[REG_G7] = (greg_t)ulwp; in setup_context()
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dmakectxt.c55 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
64 reg = ucp->uc_mcontext.gregs; in makecontext()
81 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp - size) & in makecontext()
108 __makecontext_v2(ucontext_t *ucp, void (*func)(), int argc, ...) in __makecontext_v2() argument
117 reg = ucp->uc_mcontext.gregs; in __makecontext_v2()
128 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp + in __makecontext_v2()
129 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); in __makecontext_v2()
H A Dgetctxt.c39 getcontext(ucontext_t *ucp) in getcontext() argument
43 ucp->uc_flags = UC_ALL; in getcontext()
44 if (__getcontext(ucp)) in getcontext()
54 reg = ucp->uc_mcontext.gregs; in getcontext()
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dmakectxt.c55 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
64 reg = ucp->uc_mcontext.gregs; in makecontext()
81 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp - size) & in makecontext()
108 __makecontext_v2(ucontext_t *ucp, void (*func)(), int argc, ...) in __makecontext_v2() argument
117 reg = ucp->uc_mcontext.gregs; in __makecontext_v2()
128 sp = (char *)(((uintptr_t)ucp->uc_stack.ss_sp + in __makecontext_v2()
129 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); in __makecontext_v2()
H A Dgetctxt.c39 getcontext(ucontext_t *ucp) in getcontext() argument
43 ucp->uc_flags = UC_ALL; in getcontext()
44 if (__getcontext(ucp)) in getcontext()
54 reg = ucp->uc_mcontext.gregs; in getcontext()
/illumos-gate/usr/src/uts/common/sys/usb/hcd/uhci/
H A Duhci.h117 #define SetQH32(ucp, addr, val) \ argument
118 SetReg32((ucp)->uhci_qh_pool_mem_handle, (addr), (val))
119 #define GetQH32(ucp, addr) \ argument
120 GetReg32((ucp)->uhci_qh_pool_mem_handle, (addr))
122 #define SetTD32(ucp, addr, val) \ argument
124 #define GetTD32(ucp, addr) \ argument
125 GetReg32((ucp)->uhci_td_pool_mem_handle, (addr))
127 #define SetFL32(ucp, addr, val) \ argument
128 SetReg32((ucp)->uhci_flt_mem_handle, (addr), (val))
129 #define GetFL32(ucp, addr) \ argument
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstack.c83 stack_violation(int sig, const siginfo_t *sip, const ucontext_t *ucp) in stack_violation() argument
90 sip == NULL || ucp == NULL || SI_FROMUSER(sip)) in stack_violation()
96 base = (uintptr_t)ucp->uc_stack.ss_sp; in stack_violation()
97 size = ucp->uc_stack.ss_size; in stack_violation()
99 addr = ucp->uc_mcontext.gregs[REG_SP] + STACK_BIAS; in stack_violation()
101 addr = ucp->uc_mcontext.gregs[REG_SP]; in stack_violation()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dgetpeerucred.c37 getpeerucred(int fd, ucred_t **ucp) in getpeerucred() argument
39 ucred_t *uc = *ucp; in getpeerucred()
48 if (*ucp == NULL) in getpeerucred()
52 *ucp = uc; in getpeerucred()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsigaction.c150 ASSERT(ucp->uc_flags & UC_SIGMASK); in call_user_handler()
152 ucp->uc_sigmask = self->ul_sigmask; in call_user_handler()
163 self->ul_siglink = ucp; in call_user_handler()
225 (void) setcontext(ucp); in call_user_handler()
294 ucontext_t *ucp = uvp; in sigacthandler() local
314 ucp->uc_link = NULL; in sigacthandler()
321 call_user_handler(sig, sip, ucp); in sigacthandler()
360 ucp->uc_sigmask = maskset; in sigacthandler()
361 (void) __setcontext(ucp); in sigacthandler()
526 setcontext(const ucontext_t *ucp) in setcontext() argument
[all …]
H A Ddoor_calls.c295 ucred_t *ucp = *uc; in door_ucred() local
297 if (ucp == NULL) { in door_ucred()
298 ucp = _ucred_alloc(); in door_ucred()
299 if (ucp == NULL) in door_ucred()
303 if (__door_ucred(ucp) != 0) { in door_ucred()
305 ucred_free(ucp); in door_ucred()
309 *uc = ucp; in door_ucred()
325 dc->dc_euid = ucred_geteuid(ucp); in door_cred()
326 dc->dc_ruid = ucred_getruid(ucp); in door_cred()
327 dc->dc_egid = ucred_getegid(ucp); in door_cred()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/i386/
H A Dbadseg_exec.c61 ucontext_t ucp; in resetseg() local
64 int rc = getcontext(&ucp); in resetseg()
66 (void) getcontext(&ucp); in resetseg()
72 ucp.uc_mcontext.gregs[seg] = selector; in resetseg()
73 (void) setcontext(&ucp); in resetseg()
/illumos-gate/usr/src/cmd/mdb/intel/amd64/kmdb/
H A Dkmdb_makecontext.c41 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument
49 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in kmdb_makecontext()
50 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)stack; in kmdb_makecontext()
51 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)arg; in kmdb_makecontext()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.c1362 if (door_ucred(ucp) != 0) {
1371 if (ucred_geteuid(*ucp) != 0) {
1377 ucred_getruid(*ucp), ucred_geteuid(*ucp), -1);
1385 dc_str, ucred_getpid(*ucp), ucred_getruid(*ucp),
1386 ucred_geteuid(*ucp), -1);
1391 ucred_free(*ucp);
1822 *ucp = NULL;
1826 ucred_free(*ucp);
1831 if (*ucp == NULL)
1844 ucred_getpid(*ucp), ucred_getruid(*ucp),
[all …]

123456