Lines Matching refs:pt
67 err |= __get_user(scr->pt.ar_unat, &sc->sc_ar_unat); in restore_sigcontext()
68 err |= __get_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); in restore_sigcontext()
69 err |= __get_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in restore_sigcontext()
70 err |= __get_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in restore_sigcontext()
71 err |= __get_user(scr->pt.b0, &sc->sc_br[0]); /* b0 (rp) */ in restore_sigcontext()
72 err |= __get_user(scr->pt.b6, &sc->sc_br[6]); /* b6 */ in restore_sigcontext()
73 err |= __copy_from_user(&scr->pt.r1, &sc->sc_gr[1], 8); /* r1 */ in restore_sigcontext()
74 err |= __copy_from_user(&scr->pt.r8, &sc->sc_gr[8], 4*8); /* r8-r11 */ in restore_sigcontext()
75 err |= __copy_from_user(&scr->pt.r12, &sc->sc_gr[12], 2*8); /* r12-r13 */ in restore_sigcontext()
76 err |= __copy_from_user(&scr->pt.r15, &sc->sc_gr[15], 8); /* r15 */ in restore_sigcontext()
78 scr->pt.cr_ifs = cfm | (1UL << 63); in restore_sigcontext()
79 scr->pt.ar_rsc = rsc | (3 << 2); /* force PL3 */ in restore_sigcontext()
82 scr->pt.cr_iip = ip & ~0x3UL; in restore_sigcontext()
83 ia64_psr(&scr->pt)->ri = ip & 0x3; in restore_sigcontext()
84 scr->pt.cr_ipsr = (scr->pt.cr_ipsr & ~IA64_PSR_UM) | (um & IA64_PSR_UM); in restore_sigcontext()
86 scr->scratch_unat = ia64_put_scratch_nat_bits(&scr->pt, nat); in restore_sigcontext()
90 err |= __get_user(scr->pt.ar_ccv, &sc->sc_ar_ccv); /* ar.ccv */ in restore_sigcontext()
91 err |= __get_user(scr->pt.b7, &sc->sc_br[7]); /* b7 */ in restore_sigcontext()
92 err |= __get_user(scr->pt.r14, &sc->sc_gr[14]); /* r14 */ in restore_sigcontext()
93 err |= __copy_from_user(&scr->pt.ar_csd, &sc->sc_ar25, 2*8); /* ar.csd & ar.ssd */ in restore_sigcontext()
94 err |= __copy_from_user(&scr->pt.r2, &sc->sc_gr[2], 2*8); /* r2-r3 */ in restore_sigcontext()
95 err |= __copy_from_user(&scr->pt.r16, &sc->sc_gr[16], 16*8); /* r16-r31 */ in restore_sigcontext()
99 struct ia64_psr *psr = ia64_psr(&scr->pt); in restore_sigcontext()
178 sc = &((struct sigframe __user *) (scr->pt.r12 + 16))->sc; in ia64_rt_sigreturn()
217 current->comm, current->pid, scr->pt.r12, scr->pt.cr_iip); in ia64_rt_sigreturn()
223 do_sigaltstack(&sc->sc_stack, NULL, scr->pt.r12); in ia64_rt_sigreturn()
249 ifs = scr->pt.cr_ifs; in setup_sigcontext()
263 nat = ia64_get_scratch_nat_bits(&scr->pt, scr->scratch_unat); in setup_sigcontext()
269 err |= __put_user(scr->pt.cr_ipsr & IA64_PSR_UM, &sc->sc_um); in setup_sigcontext()
270 err |= __put_user(scr->pt.ar_rsc, &sc->sc_ar_rsc); in setup_sigcontext()
271 err |= __put_user(scr->pt.ar_unat, &sc->sc_ar_unat); /* ar.unat */ in setup_sigcontext()
272 err |= __put_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); /* ar.fpsr */ in setup_sigcontext()
273 err |= __put_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in setup_sigcontext()
274 err |= __put_user(scr->pt.pr, &sc->sc_pr); /* predicates */ in setup_sigcontext()
275 err |= __put_user(scr->pt.b0, &sc->sc_br[0]); /* b0 (rp) */ in setup_sigcontext()
276 err |= __put_user(scr->pt.b6, &sc->sc_br[6]); /* b6 */ in setup_sigcontext()
277 err |= __copy_to_user(&sc->sc_gr[1], &scr->pt.r1, 8); /* r1 */ in setup_sigcontext()
278 err |= __copy_to_user(&sc->sc_gr[8], &scr->pt.r8, 4*8); /* r8-r11 */ in setup_sigcontext()
279 err |= __copy_to_user(&sc->sc_gr[12], &scr->pt.r12, 2*8); /* r12-r13 */ in setup_sigcontext()
280 err |= __copy_to_user(&sc->sc_gr[15], &scr->pt.r15, 8); /* r15 */ in setup_sigcontext()
281 err |= __put_user(scr->pt.cr_iip + ia64_psr(&scr->pt)->ri, &sc->sc_ip); in setup_sigcontext()
285 err |= __put_user(scr->pt.ar_ccv, &sc->sc_ar_ccv); /* ar.ccv */ in setup_sigcontext()
286 err |= __put_user(scr->pt.b7, &sc->sc_br[7]); /* b7 */ in setup_sigcontext()
287 err |= __put_user(scr->pt.r14, &sc->sc_gr[14]); /* r14 */ in setup_sigcontext()
288 err |= __copy_to_user(&sc->sc_ar25, &scr->pt.ar_csd, 2*8); /* ar.csd & ar.ssd */ in setup_sigcontext()
289 err |= __copy_to_user(&sc->sc_gr[2], &scr->pt.r2, 2*8); /* r2-r3 */ in setup_sigcontext()
290 err |= __copy_to_user(&sc->sc_gr[16], &scr->pt.r16, 16*8); /* r16-r31 */ in setup_sigcontext()
343 new_sp = scr->pt.r12; in setup_frame()
356 if (!rbs_on_sig_stack(scr->pt.ar_bspstore)) in setup_frame()
389 err |= __put_user(sas_ss_flags(scr->pt.r12), &frame->sc.sc_stack.ss_flags); in setup_frame()
395 scr->pt.r12 = (unsigned long) frame - 16; /* new stack pointer */ in setup_frame()
396 scr->pt.ar_fpsr = FPSR_DEFAULT; /* reset fpsr for signal handler */ in setup_frame()
397 scr->pt.cr_iip = tramp_addr; in setup_frame()
398 ia64_psr(&scr->pt)->ri = 0; /* start executing in first slot */ in setup_frame()
399 ia64_psr(&scr->pt)->be = 0; /* force little-endian byte-order */ in setup_frame()
408 scr->pt.cr_ifs = (1UL << 63); in setup_frame()
418 current->comm, current->pid, sig, scr->pt.r12, frame->sc.sc_ip, frame->handler); in setup_frame()
440 tracehook_signal_handler(sig, info, ka, &scr->pt, in handle_signal()
457 long errno = scr->pt.r8; in ia64_do_signal()
464 if (!user_mode(&scr->pt)) in ia64_do_signal()
477 int signr = get_signal_to_deliver(&info, &ka, &scr->pt, NULL); in ia64_do_signal()
485 if ((long) scr->pt.r10 != -1) in ia64_do_signal()
501 scr->pt.r8 = EINTR; in ia64_do_signal()
507 scr->pt.r8 = EINTR; in ia64_do_signal()
512 ia64_decrement_ip(&scr->pt); in ia64_do_signal()
544 ia64_decrement_ip(&scr->pt); in ia64_do_signal()
546 scr->pt.r15 = __NR_restart_syscall; in ia64_do_signal()