/illumos-gate/usr/src/uts/sun4/os/ |
H A D | trap.c | 107 mod_containing_pc((caddr_t)rp->r_pc), in die() 221 ((oldpc = rp->r_pc), prundostep()) && in trap() 224 oldpc = rp->r_pc; in trap() 290 siginfo.si_addr = (caddr_t)rp->r_pc; in trap() 296 addr = (caddr_t)rp->r_pc; in trap() 310 rp->r_pc = curthread->t_lofault; in trap() 311 rp->r_npc = rp->r_pc + 4; in trap() 318 addr = (caddr_t)rp->r_pc; in trap() 323 addr = (caddr_t)rp->r_pc; in trap() 349 rp->r_pc = curthread->t_lofault; in trap() [all …]
|
H A D | dtrace_subr.c | 101 if (fuword32((void *)rp->r_pc, &instr) != 0 || in dtrace_pid_probe() 108 sqp->sq_info.si_addr = (caddr_t)rp->r_pc; in dtrace_pid_probe() 148 ASSERT(rp->r_npc == rp->r_pc + 4); in dtrace_return_probe() 156 rp->r_pc = npc; in dtrace_return_probe() 170 rp->r_pc = npc; in dtrace_return_probe() 188 if (rp->r_pc != t->t_dtrace_scrpc && rp->r_pc != t->t_dtrace_astpc && in dtrace_safe_synchronous_signal() 191 } else if (rp->r_pc == t->t_dtrace_scrpc) { in dtrace_safe_synchronous_signal() 192 rp->r_pc = t->t_dtrace_pc; in dtrace_safe_synchronous_signal() 210 if (rp->r_pc != t->t_dtrace_scrpc && rp->r_pc != t->t_dtrace_astpc && in dtrace_safe_defer_signal() 221 ASSERT(rp->r_pc == t->t_dtrace_scrpc); in dtrace_safe_defer_signal()
|
H A D | visinstr.c | 362 pregs->r_pc = pregs->r_npc; /* Do not retry emulated instruction. */ in vis_fpu_simulator() 1466 pfpsd->fp_trapaddr = (caddr_t)pregs->r_pc; in vis_prtl_fst() 1583 pregs->r_pc = pregs->r_npc; /* Do not retry emulated instruction. */ in vis_prtl_fst() 1700 pregs->r_pc = pregs->r_npc; /* Do not retry emulated instruction. */ in vis_short_fls() 1813 pfpsd->fp_trapaddr = (caddr_t)pregs->r_pc; in vis_blk_fldst() 1817 pregs->r_pc = pregs->r_npc; /* Do not retry emulated instruction. */ in vis_blk_fldst() 1841 pregs->r_pc = pregs->r_npc; /* Do not retry emulated instruction. */ in vis_rdgsr() 1883 pregs->r_pc = pregs->r_npc; /* Do not retry emulated instruction. */ in vis_wrgsr()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | dtrace_subr.c | 215 rp->r_pc = npc; in dtrace_user_probe() 228 rp->r_pc = npc; in dtrace_user_probe() 265 if (rp->r_pc > 0 && fuword8(linearpc - 1, &instr) == 0 && in dtrace_user_probe() 267 (instr != 3 || (rp->r_pc >= 2 && in dtrace_user_probe() 269 rp->r_pc--; in dtrace_user_probe() 295 if (rp->r_pc < t->t_dtrace_scrpc || in dtrace_safe_synchronous_signal() 296 rp->r_pc > t->t_dtrace_astpc + isz) { in dtrace_safe_synchronous_signal() 298 } else if (rp->r_pc == t->t_dtrace_scrpc || in dtrace_safe_synchronous_signal() 299 rp->r_pc == t->t_dtrace_astpc) { in dtrace_safe_synchronous_signal() 300 rp->r_pc = t->t_dtrace_pc; in dtrace_safe_synchronous_signal() [all …]
|
H A D | trap.c | 218 mod_containing_pc((caddr_t)rp->r_pc), in die() 413 rp->r_pc += LSAHFSIZE; in emulate_lsahf() 497 } else if ((caddr_t)rp->r_pc == addr || in trap() 535 if ((caddr_t)rp->r_pc == addr) in trap() 575 siginfo.si_addr = (caddr_t)rp->r_pc; in trap() 593 rp->r_pc = ct->t_ontrap->ot_trampoline; in trap() 672 uintptr_t rip = rp->r_pc; in trap() 680 rp->r_pc = rip; in trap() 695 caddr_t pc = (caddr_t)rp->r_pc; in trap() 709 (void *)rp->r_pc); in trap() [all …]
|
H A D | intr.c | 552 cpu->cpu_profile_upc = rp->r_pc; in hilevel_intr_prolog() 554 cpu->cpu_cpcprofile_upc = rp->r_pc; in hilevel_intr_prolog() 556 cpu->cpu_profile_pc = rp->r_pc; in hilevel_intr_prolog() 558 cpu->cpu_cpcprofile_pc = rp->r_pc; in hilevel_intr_prolog() 1532 ASSERT(!(rp->r_pc >= (uintptr_t)tr_sysc_ret_start && in sys_rtt_common() 1533 rp->r_pc <= (uintptr_t)tr_sysc_ret_end)); in sys_rtt_common() 1559 if ((uintptr_t)rp->r_pc - (uintptr_t)mutex_exit_critical_start < in sys_rtt_common() 1561 rp->r_pc = (greg_t)mutex_exit_critical_start; in sys_rtt_common() 1570 if ((uintptr_t)rp->r_pc - in sys_rtt_common() 1573 rp->r_pc = (greg_t)mutex_owner_running_critical_start; in sys_rtt_common()
|
H A D | machdep.c | 557 printf("ip = %x\n", rp->r_pc); in nmfunc1() 1354 rp->r_pc); in linear_pc() 1362 *linearp = (caddr_t)(uintptr_t)rp->r_pc; in linear_pc() 1404 rp->r_pc); in dtrace_linear_pc() 1412 *linearp = (caddr_t)(uintptr_t)rp->r_pc; in dtrace_linear_pc()
|
H A D | instr_size.c | 130 caddr_t pc = (caddr_t)rp->r_pc; in instr_size()
|
/illumos-gate/usr/src/uts/sparc/fpu/ |
H A D | iu_simulator.c | 141 tpc = pregs->r_pc; in fbcc_sim() 144 pregs->r_pc = tpc + in fbcc_sim() 147 pregs->r_pc = tpc + in fbcc_sim() 150 pregs->r_npc = pregs->r_pc + 4; in fbcc_sim() 152 pregs->r_pc = pregs->r_npc; in fbcc_sim() 163 pregs->r_pc = pregs->r_npc + 4; in fbcc_sim() 166 pregs->r_pc = pregs->r_npc; in fbcc_sim()
|
H A D | fpu_simulator.c | 579 pregs->r_pc = pregs->r_npc; in fpu_vis_sim() 658 pregs->r_pc = pregs->r_npc; in fp_emulator() 688 pinst = (fp_inst_type *)pregs->r_pc; in fp_emulator() 699 pregs->r_pc = pregs->r_npc; in fp_emulator()
|
/illumos-gate/usr/src/uts/sparc/fs/proc/ |
H A D | prmachdep.c | 296 dest[R_PC] = SET_LOWER_32(r->r_pc, src[R_PC]); in prgregset_32ton() 653 r->r_pc = (uintptr_t)vaddr & ~03L; in prsvaddr() 654 r->r_npc = r->r_pc + 4; in prsvaddr() 746 pc = (caddr_t)(uintptr_t)(caddr32_t)r->r_pc; in prdostep() 749 pc = (caddr_t)r->r_pc; in prdostep() 758 r->r_pc = (greg_t)as->a_userlimit; in prdostep() 786 r->r_pc = (greg_t)as->a_userlimit; in prdostep() 787 r->r_npc = r->r_pc + 4; in prdostep() 795 r->r_pc = (greg_t)as->a_userlimit; in prdostep() 796 r->r_npc = r->r_pc + 4; in prdostep() [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/fpu/ |
H A D | fpu.c | 225 (void) fuword32((void *)rp->r_pc, &instr); in fp_disabled() 227 instr = *(uint_t *)(rp->r_pc); in fp_disabled() 290 if (ftt = fp_emulator(&fpsd, (fp_inst_type *)rp->r_pc, in fp_disabled() 439 inst_ftt = _fp_read_inst((uint32_t *)rp->r_pc, &kluge.i, &fpsd); in fp_precise() 443 kluge.i = *(uint_t *)rp->r_pc; in fp_precise() 453 fpsd.fp_trapaddr = (caddr_t)rp->r_pc; in fp_precise() 472 pfpq->fpq_addr = (uint_t *)rp->r_pc; in fp_precise()
|
/illumos-gate/usr/src/uts/sparc/v9/os/ |
H A D | simulator.c | 94 inst = fetch_user_instr((caddr_t)rp->r_pc); in do_unaligned() 211 (void *)rp->r_pc, inst); in do_unaligned() 576 inst = fetch_user_instr((caddr_t)rp->r_pc); in simulate_lddstd() 578 inst = *(uint_t *)rp->r_pc; in simulate_lddstd() 852 caddr_t addr = (caddr_t)rp->r_pc; in simulate_unimp() 1091 mapseg = as_findseg(as, (caddr_t)rp->r_pc, 0); in simulate_unimp() 1113 if (as_fault(as->a_hat, as, (caddr_t)(rp->r_pc & PAGEMASK), PAGESIZE, in simulate_unimp() 1118 pfnum = hat_getpfnum(as->a_hat, (caddr_t)rp->r_pc); in simulate_unimp() 1124 (void) as_fault(as->a_hat, as, (caddr_t)(rp->r_pc & PAGEMASK), in simulate_unimp() 1130 ka = ppmapin(pp, PROT_READ|PROT_WRITE, (caddr_t)rp->r_pc); in simulate_unimp() [all …]
|
H A D | v9dep.c | 354 rp->r_pc = grp[REG_PC] & ~03L; in setgregs() 406 grp[REG_PC] = rp->r_pc; in getgregs() 443 grp[REG_PC] = rp->r_pc; in getgregs32() 470 return (lwptoregs(ttolwp(curthread))->r_pc); in getuserpc() 817 rp->r_pc = args->entry; in setregs() 1014 (void *)fp, (void *)hdlr, rp->r_pc); in sendsig() 1163 rp->r_pc = (uintptr_t)hdlr; in sendsig() 1194 (void *)fp, (void *)hdlr, rp->r_pc); in sendsig() 1344 (void *)fp, (void *)hdlr, rp->r_pc); in sendsig32() 1505 rp->r_pc = (uintptr_t)hdlr; in sendsig32() [all …]
|
/illumos-gate/usr/src/uts/sun4v/cpu/ |
H A D | generic.c | 238 instr = fetch_user_instr((caddr_t)rp->r_pc); in vis1_partial_support() 264 rp->r_pc = rp->r_npc; in vis1_partial_support() 279 siginfo->si_addr = (caddr_t)rp->r_pc; in vis1_partial_support() 299 siginfo->si_addr = (caddr_t)rp->r_pc; in vis1_partial_support()
|
H A D | niagara.c | 279 instr = fetch_user_instr((caddr_t)rp->r_pc); in vis1_partial_support() 305 rp->r_pc = rp->r_npc; in vis1_partial_support() 320 siginfo->si_addr = (caddr_t)rp->r_pc; in vis1_partial_support() 340 siginfo->si_addr = (caddr_t)rp->r_pc; in vis1_partial_support()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | error.c | 262 aflt->flt_pc = (caddr_t)rp->r_pc; in process_nonresumable_error() 449 rp->r_pc = otp->ot_trampoline; in errh_error_protected() 450 rp->r_npc = rp->r_pc +4; in errh_error_protected() 457 rp->r_pc = otp->ot_trampoline; in errh_error_protected() 458 rp->r_npc = rp->r_pc + 4; in errh_error_protected() 474 rp->r_pc = curthread->t_lofault; in errh_error_protected() 475 rp->r_npc = rp->r_pc + 4; in errh_error_protected()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | sendsig.c | 161 upc = rp->r_pc; in sendsig() 359 rp->r_pc = (greg_t)hdlr; in sendsig() 439 upc = rp->r_pc; in sendsig32() 602 rp->r_pc = (greg_t)(uintptr_t)hdlr; in sendsig32()
|
/illumos-gate/usr/src/uts/sparc/v7/sys/ |
H A D | privregs.h | 55 long r_pc; /* program counter */ member
|
/illumos-gate/usr/src/uts/sparc/dtrace/ |
H A D | fasttrap_isa.c | 378 if (rp->r_npc == rp->r_pc + 4 && in fasttrap_return_common() 418 uintptr_t pc = rp->r_pc; in fasttrap_pid_probe() 888 fasttrap_putreg(rp, RD(tp->ftt_instr), rp->r_pc); in fasttrap_pid_probe() 897 rp->r_o7 = rp->r_pc; in fasttrap_pid_probe() 923 fasttrap_putreg(rp, RD(tp->ftt_instr), rp->r_pc); in fasttrap_pid_probe() 1007 rp->r_pc = pc; in fasttrap_pid_probe() 1043 rp->r_pc = pc; in fasttrap_return_probe()
|
H A D | dtrace_isa.c | 475 *pcstack++ = (uint64_t)rp->r_pc; in dtrace_getupcstack() 568 *pcstack++ = (uint64_t)rp->r_pc; in dtrace_getufpstack() 578 *pcstack++ = (uint64_t)rp->r_pc; in dtrace_getufpstack() 765 return (rp->r_pc); in dtrace_getreg()
|
/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 858 uintptr_t pc = rp->r_pc - 1, new_pc = 0; in fasttrap_pid_probe() 925 rp->r_pc = pc; in fasttrap_pid_probe() 1042 rp->r_pc = pc + tp->ftt_size; in fasttrap_pid_probe() 1057 new_pc = rp->r_pc; in fasttrap_pid_probe() 1566 rp->r_pc = pc; in fasttrap_pid_probe() 1577 rp->r_pc = new_pc; in fasttrap_pid_probe() 1610 rp->r_pc = pc; in fasttrap_return_probe()
|
H A D | dtrace_isa.c | 242 pc = rp->r_pc; in dtrace_getupcstack() 284 pc = rp->r_pc; in dtrace_getustackdepth() 330 pc = rp->r_pc; in dtrace_getufpstack()
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | opl_olympus.c | 1942 aflt->flt_pc = (caddr_t)rp->r_pc; 1992 rp->r_pc = otp->ot_trampoline; 1993 rp->r_npc = rp->r_pc + 4; 2001 rp->r_pc = otp->ot_trampoline; 2002 rp->r_npc = rp->r_pc + 4; 2018 rp->r_pc = curthread->t_lofault; 2019 rp->r_npc = rp->r_pc + 4; 2122 aflt->flt_pc = (caddr_t)rp->r_pc;
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_intr.c | 431 cpu->cpu_profile_upc = rp->r_pc; in apix_hilevel_intr_prolog() 433 cpu->cpu_cpcprofile_upc = rp->r_pc; in apix_hilevel_intr_prolog() 435 cpu->cpu_profile_pc = rp->r_pc; in apix_hilevel_intr_prolog() 437 cpu->cpu_cpcprofile_pc = rp->r_pc; in apix_hilevel_intr_prolog()
|