Home
last modified time | relevance | path

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

123

/titanic_41/usr/src/uts/intel/ia32/syscall/
H A Dgetcontext.c54 savecontext(ucontext_t *ucp, const k_sigset_t *mask) in savecontext() argument
65 bzero(&ucp->uc_mcontext.fpregs, sizeof (ucontext_t) - in savecontext()
68 ucp->uc_flags = UC_ALL; in savecontext()
69 ucp->uc_link = (struct ucontext *)lwp->lwp_oldcontext; in savecontext()
78 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack, in savecontext()
79 sizeof (ucp->uc_stack)) != 0 || in savecontext()
80 ucp->uc_stack.ss_size == 0) { in savecontext()
83 ucp->uc_stack = lwp->lwp_sigaltstack; in savecontext()
85 ucp->uc_stack.ss_sp = p->p_usrstack - p->p_stksize; in savecontext()
86 ucp->uc_stack.ss_size = p->p_stksize; in savecontext()
[all …]
/titanic_41/usr/src/uts/sparc/syscall/
H A Dgetcontext.c57 savecontext(ucontext_t *ucp, const k_sigset_t *mask) in savecontext() argument
66 bzero(&ucp->uc_mcontext.fpregs.fpu_en, sizeof (ucontext_t) - in savecontext()
72 (&ucp->uc_flags)[1] = 0; in savecontext()
73 (&ucp->uc_stack.ss_flags)[1] = 0; in savecontext()
81 ucp->uc_flags = UC_ALL; in savecontext()
82 ucp->uc_link = (ucontext_t *)lwp->lwp_oldcontext; in savecontext()
91 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack, in savecontext()
92 sizeof (ucp->uc_stack)) != 0 || in savecontext()
93 ucp->uc_stack.ss_size == 0) { in savecontext()
96 ucp->uc_stack = lwp->lwp_sigaltstack; in savecontext()
[all …]
/titanic_41/usr/src/lib/libc/i386/threads/
H A Dmachdep.c87 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), in setup_context() argument
109 (void) memset(ucp, 0, sizeof (*ucp)); in setup_context()
110 ucp->uc_mcontext.gregs[FS] = fs; in setup_context()
111 ucp->uc_mcontext.gregs[ES] = es; in setup_context()
112 ucp->uc_mcontext.gregs[DS] = ds; in setup_context()
113 ucp->uc_mcontext.gregs[CS] = cs; in setup_context()
114 ucp->uc_mcontext.gregs[SS] = ss; in setup_context()
125 ucp->uc_mcontext.gregs[ESP] = (greg_t)ulwp; in setup_context()
126 ucp->uc_mcontext.gregs[GS] = (greg_t)LWPGS_SEL; in setup_context()
136 ucp->uc_flags |= UC_CPU; in setup_context()
[all …]
/titanic_41/usr/src/ucblib/libucb/sparc/sys/
H A Dsignal.c103 _sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in _sigvechandler() argument
105 ucbsigvechandler(sig, sip, ucp); in _sigvechandler()
110 ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in ucbsigvechandler() argument
119 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); in ucbsigvechandler()
120 sc.sc_mask = set2mask(&ucp->uc_sigmask); in ucbsigvechandler()
130 ucp->uc_mcontext.gregs[REG_PC] = in ucbsigvechandler()
131 ucp->uc_mcontext.gregs[REG_nPC]; in ucbsigvechandler()
132 ucp->uc_mcontext.gregs[REG_nPC] += 4; in ucbsigvechandler()
134 sc.sc_sp = ucp->uc_mcontext.gregs[REG_SP]; in ucbsigvechandler()
135 sc.sc_pc = ucp->uc_mcontext.gregs[REG_PC]; in ucbsigvechandler()
[all …]
/titanic_41/usr/src/cmd/csh/sparc/
H A Dsignal.c67 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in sigvechandler() argument
75 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); in sigvechandler()
76 sc.sc_mask = set2mask(&ucp->uc_sigmask); in sigvechandler()
81 sc.sc_sp = ucp->uc_mcontext.gregs[REG_O6]; in sigvechandler()
82 sc.sc_pc = ucp->uc_mcontext.gregs[REG_PC]; in sigvechandler()
83 sc.sc_npc = ucp->uc_mcontext.gregs[REG_nPC]; in sigvechandler()
84 sc.sc_psr = ucp->uc_mcontext.gregs[REG_PSR]; in sigvechandler()
85 sc.sc_g1 = ucp->uc_mcontext.gregs[REG_G1]; in sigvechandler()
86 sc.sc_o0 = ucp->uc_mcontext.gregs[REG_O0]; in sigvechandler()
87 if (ucp->uc_mcontext.gwins != (gwindows_t *)0) { in sigvechandler()
[all …]
/titanic_41/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c68 setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), in setup_context() argument
74 (void) memset(ucp, 0, sizeof (*ucp)); in setup_context()
77 ucp->uc_mcontext.gregs[REG_FSBASE] = (greg_t)ulwp; in setup_context()
78 ucp->uc_mcontext.gregs[REG_FS] = 0; /* null selector indicates fsbase */ in setup_context()
81 ucp->uc_mcontext.gregs[REG_SS] = UDS_SEL; in setup_context()
91 ucp->uc_flags |= UC_CPU; in setup_context()
92 ucp->uc_mcontext.gregs[REG_RDI] = (greg_t)ulwp; in setup_context()
93 ucp->uc_mcontext.gregs[REG_RIP] = (greg_t)func; in setup_context()
94 ucp->uc_mcontext.gregs[REG_RSP] = (greg_t)stack; in setup_context()
95 ucp->uc_mcontext.gregs[REG_RBP] = (greg_t)(stack + 1); in setup_context()
[all …]
/titanic_41/usr/src/ucblib/libucb/i386/sys/
H A Dsignal.c86 _sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in _sigvechandler() argument
89 ucbsigvechandler(sig, sip, ucp); in _sigvechandler()
93 ucbsigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in ucbsigvechandler() argument
101 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); in ucbsigvechandler()
102 sc.sc_mask = set2mask(&ucp->uc_sigmask); in ucbsigvechandler()
105 sc.sc_sp = (long)ucp->uc_mcontext.gregs[REG_RSP]; in ucbsigvechandler()
106 sc.sc_pc = (long)ucp->uc_mcontext.gregs[REG_RIP]; in ucbsigvechandler()
107 sc.sc_ps = (long)ucp->uc_mcontext.gregs[REG_RFL]; in ucbsigvechandler()
108 sc.sc_r0 = (long)ucp->uc_mcontext.gregs[REG_RAX]; in ucbsigvechandler()
109 sc.sc_r1 = (long)ucp->uc_mcontext.gregs[REG_RDX]; in ucbsigvechandler()
[all …]
/titanic_41/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.c41 ucontext_t *ucp = (ucontext_t *)env; in siglongjmp() local
44 ucp->uc_mcontext.gregs[REG_R0] = val; in siglongjmp()
46 ucp->uc_mcontext.gregs[REG_R0] = 1; in siglongjmp()
48 (void) setcontext(ucp); in siglongjmp()
/titanic_41/usr/src/cmd/csh/i386/
H A Dsignal.c67 sigvechandler(int sig, siginfo_t *sip, ucontext_t *ucp) in sigvechandler() argument
75 sc.sc_onstack = ((ucp->uc_stack.ss_flags & SS_ONSTACK) != 0); in sigvechandler()
76 sc.sc_mask = set2mask(&ucp->uc_sigmask); in sigvechandler()
81 sc.sc_sp = (int) ucp->uc_mcontext.gregs[UESP]; in sigvechandler()
82 sc.sc_pc = (int) ucp->uc_mcontext.gregs[EIP]; in sigvechandler()
83 sc.sc_ps = (int) ucp->uc_mcontext.gregs[EFL]; in sigvechandler()
84 sc.sc_eax = (int) ucp->uc_mcontext.gregs[EAX]; in sigvechandler()
85 sc.sc_edx = (int) ucp->uc_mcontext.gregs[EDX]; in sigvechandler()
104 ucp->uc_stack.ss_flags |= SS_ONSTACK; in sigvechandler()
106 ucp->uc_stack.ss_flags &= ~SS_ONSTACK; in sigvechandler()
[all …]
/titanic_41/usr/src/cmd/mdb/sparc/kmdb/
H A Dkmdb_makecontext.c44 kmdb_makecontext(ucontext_t *ucp, void (*func)(void *), void *arg, caddr_t stk, in kmdb_makecontext() argument
58 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in kmdb_makecontext()
59 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; in kmdb_makecontext()
60 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)arg; in kmdb_makecontext()
61 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); in kmdb_makecontext()
62 ucp->uc_mcontext.gregs[REG_O7] = NULL; in kmdb_makecontext()
63 ucp->uc_mcontext.gregs[REG_G7] = NULL; in kmdb_makecontext()
/titanic_41/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()
79 ucp->uc_flags |= UC_CPU; in setup_context()
80 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in setup_context()
81 ucp->uc_mcontext.gregs[REG_nPC] = (greg_t)func + 4; in setup_context()
82 ucp->uc_mcontext.gregs[REG_O0] = (greg_t)ulwp; in setup_context()
83 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)(stack - STACK_BIAS); in setup_context()
84 ucp->uc_mcontext.gregs[REG_O7] = (greg_t)_lwp_start; in setup_context()
85 ucp->uc_mcontext.gregs[REG_G7] = (greg_t)ulwp; in setup_context()
/titanic_41/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.c40 getcontext(ucontext_t *ucp) in getcontext() argument
44 ucp->uc_flags = UC_ALL; in getcontext()
45 if (__getcontext(ucp)) in getcontext()
55 reg = ucp->uc_mcontext.gregs; in getcontext()
/titanic_41/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.c40 getcontext(ucontext_t *ucp) in getcontext() argument
44 ucp->uc_flags = UC_ALL; in getcontext()
45 if (__getcontext(ucp)) in getcontext()
55 reg = ucp->uc_mcontext.gregs; in getcontext()
/titanic_41/usr/src/lib/libc/i386/gen/
H A Dmakectxt.c52 makecontext(ucontext_t *ucp, void (*func)(), int argc, ...) in makecontext() argument
59 ucp->uc_mcontext.gregs[EIP] = (greg_t)func; in makecontext()
63 sp = (long *)(((uintptr_t)ucp->uc_stack.ss_sp + in makecontext()
64 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1)); in makecontext()
78 ucp->uc_mcontext.gregs[UESP] = (greg_t)sp; in makecontext()
H A Dsiglongjmp.c44 ucontext_t *ucp = (ucontext_t *)env; in siglongjmp() local
47 ucp->uc_mcontext.gregs[EAX] = val; in siglongjmp()
49 ucp->uc_mcontext.gregs[EAX] = 1; in siglongjmp()
51 (void) setcontext(ucp); in siglongjmp()
/titanic_41/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
123 SetReg32((ucp)->uhci_td_pool_mem_handle, (addr), (val))
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))
[all …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/lib/libc/port/threads/
H A Dsigaction.c71 call_user_handler(int sig, siginfo_t *sip, ucontext_t *ucp) in call_user_handler() argument
146 ASSERT(ucp->uc_flags & UC_SIGMASK); in call_user_handler()
148 ucp->uc_sigmask = self->ul_sigmask; in call_user_handler()
154 sigorset(&uact.sa_mask, &ucp->uc_sigmask); in call_user_handler()
159 self->ul_siglink = ucp; in call_user_handler()
198 __sighndlr(sig, sip, ucp, uact.sa_sigaction); in call_user_handler()
206 if (sig == SIGFPE && ucp->uc_mcontext.fpregs.fpu_qcnt) { in call_user_handler()
207 fpregset_t *fp = &ucp->uc_mcontext.fpregs; in call_user_handler()
221 (void) setcontext(ucp); in call_user_handler()
290 ucontext_t *ucp = uvp; in sigacthandler() local
[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()
321 ucred_t *ucp = alloca(ucred_size()); in door_cred() local
324 if ((ret = __door_ucred(ucp)) == 0) { in door_cred()
325 dc->dc_euid = ucred_geteuid(ucp); in door_cred()
[all …]
/titanic_41/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, in kmdb_makecontext() argument
52 ucp->uc_mcontext.gregs[REG_PC] = (greg_t)func; in kmdb_makecontext()
53 ucp->uc_mcontext.gregs[REG_SP] = (greg_t)stack; in kmdb_makecontext()

123