Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/uts/intel/syscall/
H A Dgetcontext.c68 ucp->uc_flags = UC_ALL; in savecontext()
126 ucp->uc_flags &= ~UC_FPU; in savecontext()
184 ucontext_t *ucp; in getsetcontext() local
210 ucp = arg; in getsetcontext()
211 if (ucp == NULL) in getsetcontext()
266 ucp->uc_flags = UC_ALL; in savecontext32()
275 ucp->uc_stack.ss_sp = in savecontext32()
277 ucp->uc_stack.ss_size = in savecontext32()
322 ucontext32_t *ucp; in getsetcontext32() local
341 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/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.c75 (void) memset(ucp, 0, sizeof (*ucp)); in setup_context()
82 ucp->uc_mcontext.gregs[REG_SS] = UDS_SEL; in setup_context()
92 ucp->uc_flags |= UC_CPU; in setup_context()
176 ucontext_t *ucp = SIGJMP2UCONTEXT(env); in __csigsetjmp() local
179 ucp->uc_link = self->ul_siglink; in __csigsetjmp()
181 ucp->uc_stack = self->ul_ustack; in __csigsetjmp()
183 ucp->uc_stack.ss_sp = in __csigsetjmp()
186 ucp->uc_stack.ss_flags = 0; in __csigsetjmp()
188 ucp->uc_flags = UC_STACK | UC_CPU; in __csigsetjmp()
190 ucp->uc_flags |= UC_SIGMASK; in __csigsetjmp()
[all …]
/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/lib/libc/amd64/gen/
H A Dmakectxt.c52 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
62 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in makecontext()
72 sp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + in makecontext()
73 ucp->uc_stack.ss_size - size) & ~(STACK_ENTRY_ALIGN - 1)); in makecontext()
86 ucp->uc_mcontext.gregs[REG_RDI] = tmp; in makecontext()
89 ucp->uc_mcontext.gregs[REG_RSI] = tmp; in makecontext()
92 ucp->uc_mcontext.gregs[REG_RDX] = tmp; in makecontext()
95 ucp->uc_mcontext.gregs[REG_RCX] = tmp; in makecontext()
98 ucp->uc_mcontext.gregs[REG_R8] = tmp; in makecontext()
101 ucp->uc_mcontext.gregs[REG_R9] = tmp; in makecontext()
[all …]
H A Dsiglongjmp.c40 ucontext_t *ucp = SIGJMP2UCONTEXT(env); in siglongjmp() local
43 ucp->uc_mcontext.gregs[REG_R0] = val; in siglongjmp()
45 ucp->uc_mcontext.gregs[REG_R0] = 1; in siglongjmp()
47 (void) setcontext(ucp); in siglongjmp()
/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/cmd/mdb/sparc/kmdb/
H A Dkmdb_makecontext.c42 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument
56 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in kmdb_makecontext()
57 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; in kmdb_makecontext()
58 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)arg; in kmdb_makecontext()
59 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); in kmdb_makecontext()
60 ucp->uc_mcontext.gregs[REG_O7] = 0; in kmdb_makecontext()
61 ucp->uc_mcontext.gregs[REG_G7] = 0; in kmdb_makecontext()
/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/i386/gen/
H A Dmakectxt.c76 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
83 ucp->uc_mcontext.gregs[EIP] = (greg_t)func; in makecontext()
87 tsp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + in makecontext()
88 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); in makecontext()
99 ucp->uc_mcontext.gregs[UESP] = (greg_t)sp; in makecontext()
H A Dsiglongjmp.c43 ucontext_t *ucp = (ucontext_t *)env; in siglongjmp() local
46 ucp->uc_mcontext.gregs[EAX] = val; in siglongjmp()
48 ucp->uc_mcontext.gregs[EAX] = 1; in siglongjmp()
50 (void) setcontext(ucp); in siglongjmp()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstack.c85 stack_violation(int sig, const siginfo_t *sip, const ucontext_t *ucp) in stack_violation() argument
92 sip == NULL || ucp == NULL || SI_FROMUSER(sip)) in stack_violation()
98 base = (uintptr_t)ucp->uc_stack.ss_sp; in stack_violation()
99 size = ucp->uc_stack.ss_size; in stack_violation()
101 addr = ucp->uc_mcontext.gregs[REG_SP] + STACK_BIAS; in stack_violation()
103 addr = ucp->uc_mcontext.gregs[REG_SP]; in stack_violation()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dgetpeerucred.c39 getpeerucred(int fd, ucred_t **ucp) in getpeerucred() argument
41 ucred_t *uc = *ucp; in getpeerucred()
50 if (*ucp == NULL) in getpeerucred()
54 *ucp = uc; in getpeerucred()
/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, in kmdb_makecontext() argument
51 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in kmdb_makecontext()
52 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)stack; in kmdb_makecontext()
53 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)arg; in kmdb_makecontext()
/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/lib/libc/port/threads/
H A Dsigaction.c146 ASSERT(ucp->uc_flags & UC_SIGMASK); in call_user_handler()
148 ucp->uc_sigmask = self->ul_sigmask; in call_user_handler()
159 self->ul_siglink = ucp; in call_user_handler()
221 (void) setcontext(ucp); in call_user_handler()
290 ucontext_t *ucp = uvp; in sigacthandler() local
310 ucp->uc_link = NULL; in sigacthandler()
317 call_user_handler(sig, sip, ucp); in sigacthandler()
356 ucp->uc_sigmask = maskset; in sigacthandler()
357 (void) __setcontext(ucp); in sigacthandler()
522 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 …]

123456