Lines Matching defs:pc
231 * Rewrite the instruction at pc to be an int $T_SYSCALLINT instruction.
237 rewrite_syscall(caddr_t pc)
242 (uintptr_t)pc) != 0)
249 * Test to see if the instruction at pc is sysenter or syscall. The second
259 instr_is_other_syscall(caddr_t pc, int which)
265 if (copyin_nowatch(pc, (caddr_t)instr, FAST_SCALL_SIZE) != 0)
338 * Test to see if the instruction at pc is a system call instruction.
348 instr_is_lcall_syscall(caddr_t pc)
352 if (copyin_nowatch(pc, (caddr_t)instr, LCALLSIZE) == 0 &&
388 instr_is_lsahf(caddr_t pc, uchar_t *instr)
390 if (copyin_nowatch(pc, (caddr_t)instr, LSAHFSIZE) == 0 &&
422 * Test to see if the instruction at pc is a prefetch instruction.
445 instr_is_prefetch(caddr_t pc)
449 return (copyin_nowatch(pc, instr, sizeof (instr)) == 0 &&
710 caddr_t pc = (caddr_t)rp->r_pc;
718 if (hat_getpfnum(kas.a_hat, pc) != PFN_INVALID) {
719 if (cmp_to_prefetch((uchar_t *)pc)) {
812 * trap gate sequence. We just have to adjust the pc.
1099 * needs to adjust the pc to avoid
1349 * int 3 (the breakpoint instruction) leaves the pc referring
1699 printf("pid=%d, pc=0x%lx, sp=0x%lx, eflags=0x%lx\n",
1774 instr_is_iret(caddr_t pc)
1779 return ((pc == (caddr_t)nopop_sys_rtt_syscall) ? 1 : 0);
1789 return (bcmp(pc, iret_insn, sizeof (iret_insn)) == 0);
1804 instr_is_segregs_pop(caddr_t pc)
1811 if (bcmp(pc, movw_0_esp_gs, sizeof (movw_0_esp_gs)) == 0 ||
1812 bcmp(pc, movw_4_esp_fs, sizeof (movw_4_esp_fs)) == 0 ||
1813 bcmp(pc, movw_8_esp_es, sizeof (movw_8_esp_es)) == 0 ||
1814 bcmp(pc, movw_c_esp_ds, sizeof (movw_c_esp_ds)) == 0)
1831 instr_is_sys_rtt(caddr_t pc)
1835 if ((uintptr_t)pc < (uintptr_t)_sys_rtt ||
1836 (uintptr_t)pc > (uintptr_t)_sys_rtt_end)
1871 caddr_t pc = (caddr_t)rp->r_pc;
1877 * pc range is outside _sys_rtt, then we should immediately
1880 if (lwp == NULL || !instr_is_sys_rtt(pc))
1886 * Disassemble the instruction at the faulting pc.
1891 if (instr_is_iret(pc)) {
1946 if (trp == NULL && instr_is_segregs_pop(pc))
2068 "type vc handler pc\n";
2072 "\ncpu address timestamp type vc handler pc\n";
2219 * print out the pc stack that we recorded