Lines Matching refs:u_regs
44 regs->u_regs[UREG_I0]; in sparc64_set_context()
62 if (regs->u_regs[UREG_I1]) { in sparc64_set_context()
84 err |= __get_user(regs->u_regs[UREG_G1], (&(*grp)[MC_G1])); in sparc64_set_context()
85 err |= __get_user(regs->u_regs[UREG_G2], (&(*grp)[MC_G2])); in sparc64_set_context()
86 err |= __get_user(regs->u_regs[UREG_G3], (&(*grp)[MC_G3])); in sparc64_set_context()
87 err |= __get_user(regs->u_regs[UREG_G4], (&(*grp)[MC_G4])); in sparc64_set_context()
88 err |= __get_user(regs->u_regs[UREG_G5], (&(*grp)[MC_G5])); in sparc64_set_context()
89 err |= __get_user(regs->u_regs[UREG_G6], (&(*grp)[MC_G6])); in sparc64_set_context()
93 err |= __get_user(regs->u_regs[UREG_I0], (&(*grp)[MC_O0])); in sparc64_set_context()
94 err |= __get_user(regs->u_regs[UREG_I1], (&(*grp)[MC_O1])); in sparc64_set_context()
95 err |= __get_user(regs->u_regs[UREG_I2], (&(*grp)[MC_O2])); in sparc64_set_context()
96 err |= __get_user(regs->u_regs[UREG_I3], (&(*grp)[MC_O3])); in sparc64_set_context()
97 err |= __get_user(regs->u_regs[UREG_I4], (&(*grp)[MC_O4])); in sparc64_set_context()
98 err |= __get_user(regs->u_regs[UREG_I5], (&(*grp)[MC_O5])); in sparc64_set_context()
99 err |= __get_user(regs->u_regs[UREG_I6], (&(*grp)[MC_O6])); in sparc64_set_context()
100 err |= __get_user(regs->u_regs[UREG_I7], (&(*grp)[MC_O7])); in sparc64_set_context()
105 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[6]))); in sparc64_set_context()
107 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[7]))); in sparc64_set_context()
143 regs->u_regs[UREG_I0]; in sparc64_get_context()
184 err |= __put_user(regs->u_regs[UREG_G1], &((*grp)[MC_G1])); in sparc64_get_context()
185 err |= __put_user(regs->u_regs[UREG_G2], &((*grp)[MC_G2])); in sparc64_get_context()
186 err |= __put_user(regs->u_regs[UREG_G3], &((*grp)[MC_G3])); in sparc64_get_context()
187 err |= __put_user(regs->u_regs[UREG_G4], &((*grp)[MC_G4])); in sparc64_get_context()
188 err |= __put_user(regs->u_regs[UREG_G5], &((*grp)[MC_G5])); in sparc64_get_context()
189 err |= __put_user(regs->u_regs[UREG_G6], &((*grp)[MC_G6])); in sparc64_get_context()
190 err |= __put_user(regs->u_regs[UREG_G7], &((*grp)[MC_G7])); in sparc64_get_context()
191 err |= __put_user(regs->u_regs[UREG_I0], &((*grp)[MC_O0])); in sparc64_get_context()
192 err |= __put_user(regs->u_regs[UREG_I1], &((*grp)[MC_O1])); in sparc64_get_context()
193 err |= __put_user(regs->u_regs[UREG_I2], &((*grp)[MC_O2])); in sparc64_get_context()
194 err |= __put_user(regs->u_regs[UREG_I3], &((*grp)[MC_O3])); in sparc64_get_context()
195 err |= __put_user(regs->u_regs[UREG_I4], &((*grp)[MC_O4])); in sparc64_get_context()
196 err |= __put_user(regs->u_regs[UREG_I5], &((*grp)[MC_O5])); in sparc64_get_context()
197 err |= __put_user(regs->u_regs[UREG_I6], &((*grp)[MC_O6])); in sparc64_get_context()
198 err |= __put_user(regs->u_regs[UREG_I7], &((*grp)[MC_O7])); in sparc64_get_context()
201 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[6]))); in sparc64_get_context()
203 (&(((struct reg_window __user *)(STACK_BIAS+regs->u_regs[UREG_I6]))->ins[7]))); in sparc64_get_context()
269 (regs->u_regs [UREG_FP] + STACK_BIAS); in do_rt_sigreturn()
275 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn()
292 err |= copy_from_user(regs->u_regs, sf->regs.u_regs, sizeof(regs->u_regs)); in do_rt_sigreturn()
327 unsigned long sp = regs->u_regs[UREG_FP] + STACK_BIAS; in get_sigframe()
375 regs->tpc, regs->u_regs[UREG_I7]); in setup_rt_frame()
404 err |= __save_altstack(&sf->stack, regs->u_regs[UREG_FP]); in setup_rt_frame()
410 (u64 __user *)(regs->u_regs[UREG_FP] + in setup_rt_frame()
429 regs->u_regs[UREG_FP] = ((unsigned long) sf) - STACK_BIAS; in setup_rt_frame()
430 regs->u_regs[UREG_I0] = ksig->sig; in setup_rt_frame()
431 regs->u_regs[UREG_I1] = (unsigned long) &sf->info; in setup_rt_frame()
437 regs->u_regs[UREG_I2] = (unsigned long) &sf->info; in setup_rt_frame()
447 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame()
454 switch (regs->u_regs[UREG_I0]) { in syscall_restart()
458 regs->u_regs[UREG_I0] = EINTR; in syscall_restart()
466 regs->u_regs[UREG_I0] = orig_i0; in syscall_restart()
502 regs->u_regs[UREG_G6] = orig_i0; in do_signal()
517 orig_i0 = regs->u_regs[UREG_G6]; in do_signal()
526 switch (regs->u_regs[UREG_I0]) { in do_signal()
531 regs->u_regs[UREG_I0] = orig_i0; in do_signal()
537 regs->u_regs[UREG_G1] = __NR_restart_syscall; in do_signal()