Lines Matching refs:pt
59 err |= __get_user(scr->pt.ar_unat, &sc->sc_ar_unat); in restore_sigcontext()
60 err |= __get_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); in restore_sigcontext()
61 err |= __get_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in restore_sigcontext()
62 err |= __get_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in restore_sigcontext()
63 err |= __get_user(scr->pt.b0, &sc->sc_br[0]); /* b0 (rp) */ in restore_sigcontext()
64 err |= __get_user(scr->pt.b6, &sc->sc_br[6]); /* b6 */ in restore_sigcontext()
65 err |= __copy_from_user(&scr->pt.r1, &sc->sc_gr[1], 8); /* r1 */ in restore_sigcontext()
66 err |= __copy_from_user(&scr->pt.r8, &sc->sc_gr[8], 4*8); /* r8-r11 */ in restore_sigcontext()
67 err |= __copy_from_user(&scr->pt.r12, &sc->sc_gr[12], 2*8); /* r12-r13 */ in restore_sigcontext()
68 err |= __copy_from_user(&scr->pt.r15, &sc->sc_gr[15], 8); /* r15 */ in restore_sigcontext()
70 scr->pt.cr_ifs = cfm | (1UL << 63); in restore_sigcontext()
71 scr->pt.ar_rsc = rsc | (3 << 2); /* force PL3 */ in restore_sigcontext()
74 scr->pt.cr_iip = ip & ~0x3UL; in restore_sigcontext()
75 ia64_psr(&scr->pt)->ri = ip & 0x3; in restore_sigcontext()
76 scr->pt.cr_ipsr = (scr->pt.cr_ipsr & ~IA64_PSR_UM) | (um & IA64_PSR_UM); in restore_sigcontext()
78 scr->scratch_unat = ia64_put_scratch_nat_bits(&scr->pt, nat); in restore_sigcontext()
82 err |= __get_user(scr->pt.ar_ccv, &sc->sc_ar_ccv); /* ar.ccv */ in restore_sigcontext()
83 err |= __get_user(scr->pt.b7, &sc->sc_br[7]); /* b7 */ in restore_sigcontext()
84 err |= __get_user(scr->pt.r14, &sc->sc_gr[14]); /* r14 */ in restore_sigcontext()
85 err |= __copy_from_user(&scr->pt.ar_csd, &sc->sc_ar25, 2*8); /* ar.csd & ar.ssd */ in restore_sigcontext()
86 err |= __copy_from_user(&scr->pt.r2, &sc->sc_gr[2], 2*8); /* r2-r3 */ in restore_sigcontext()
87 err |= __copy_from_user(&scr->pt.r16, &sc->sc_gr[16], 16*8); /* r16-r31 */ in restore_sigcontext()
91 struct ia64_psr *psr = ia64_psr(&scr->pt); in restore_sigcontext()
116 sc = &((struct sigframe __user *) (scr->pt.r12 + 16))->sc; in ia64_rt_sigreturn()
148 current->comm, current->pid, scr->pt.r12, scr->pt.cr_iip); in ia64_rt_sigreturn()
171 ifs = scr->pt.cr_ifs; in setup_sigcontext()
185 nat = ia64_get_scratch_nat_bits(&scr->pt, scr->scratch_unat); in setup_sigcontext()
191 err |= __put_user(scr->pt.cr_ipsr & IA64_PSR_UM, &sc->sc_um); in setup_sigcontext()
192 err |= __put_user(scr->pt.ar_rsc, &sc->sc_ar_rsc); in setup_sigcontext()
193 err |= __put_user(scr->pt.ar_unat, &sc->sc_ar_unat); /* ar.unat */ in setup_sigcontext()
194 err |= __put_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); /* ar.fpsr */ in setup_sigcontext()
195 err |= __put_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in setup_sigcontext()
196 err |= __put_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in setup_sigcontext()
197 err |= __put_user(scr->pt.b0, &sc->sc_br[0]); /* b0 (rp) */ in setup_sigcontext()
198 err |= __put_user(scr->pt.b6, &sc->sc_br[6]); /* b6 */ in setup_sigcontext()
199 err |= __copy_to_user(&sc->sc_gr[1], &scr->pt.r1, 8); /* r1 */ in setup_sigcontext()
200 err |= __copy_to_user(&sc->sc_gr[8], &scr->pt.r8, 4*8); /* r8-r11 */ in setup_sigcontext()
201 err |= __copy_to_user(&sc->sc_gr[12], &scr->pt.r12, 2*8); /* r12-r13 */ in setup_sigcontext()
202 err |= __copy_to_user(&sc->sc_gr[15], &scr->pt.r15, 8); /* r15 */ in setup_sigcontext()
203 err |= __put_user(scr->pt.cr_iip + ia64_psr(&scr->pt)->ri, &sc->sc_ip); in setup_sigcontext()
207 err |= __put_user(scr->pt.ar_ccv, &sc->sc_ar_ccv); /* ar.ccv */ in setup_sigcontext()
208 err |= __put_user(scr->pt.b7, &sc->sc_br[7]); /* b7 */ in setup_sigcontext()
209 err |= __put_user(scr->pt.r14, &sc->sc_gr[14]); /* r14 */ in setup_sigcontext()
210 err |= __copy_to_user(&sc->sc_ar25, &scr->pt.ar_csd, 2*8); /* ar.csd & ar.ssd */ in setup_sigcontext()
211 err |= __copy_to_user(&sc->sc_gr[2], &scr->pt.r2, 2*8); /* r2-r3 */ in setup_sigcontext()
212 err |= __copy_to_user(&sc->sc_gr[16], &scr->pt.r16, 16*8); /* r16-r31 */ in setup_sigcontext()
234 new_sp = scr->pt.r12; in setup_frame()
247 if (!rbs_on_sig_stack(scr->pt.ar_bspstore)) in setup_frame()
281 err |= __save_altstack(&frame->sc.sc_stack, scr->pt.r12); in setup_frame()
289 scr->pt.r12 = (unsigned long) frame - 16; /* new stack pointer */ in setup_frame()
290 scr->pt.ar_fpsr = FPSR_DEFAULT; /* reset fpsr for signal handler */ in setup_frame()
291 scr->pt.cr_iip = tramp_addr; in setup_frame()
292 ia64_psr(&scr->pt)->ri = 0; /* start executing in first slot */ in setup_frame()
293 ia64_psr(&scr->pt)->be = 0; /* force little-endian byte-order */ in setup_frame()
302 scr->pt.cr_ifs = (1UL << 63); in setup_frame()
312 current->comm, current->pid, ksig->sig, scr->pt.r12, frame->sc.sc_ip, frame->handler); in setup_frame()
336 long errno = scr->pt.r8; in ia64_do_signal()
353 if ((long) scr->pt.r10 != -1) in ia64_do_signal()
369 scr->pt.r8 = EINTR; in ia64_do_signal()
374 scr->pt.r8 = EINTR; in ia64_do_signal()
380 ia64_decrement_ip(&scr->pt); in ia64_do_signal()
404 ia64_decrement_ip(&scr->pt); in ia64_do_signal()
406 scr->pt.r15 = __NR_restart_syscall; in ia64_do_signal()