/titanic_44/usr/src/cmd/mdb/sparc/mdb/ |
H A D | mdb_v9util.c | 133 const kreg_t *kregs = gregs->kregs; in mdb_v9printregs() local 135 #define GETREG2(x) ((uintptr_t)kregs[(x)]), ((uintptr_t)kregs[(x)]) in mdb_v9printregs() 186 "xcc=%c%c%c%c icc=%c%c%c%c\n", kregs[KREG_CCR], in mdb_v9printregs() 187 (kregs[KREG_CCR] & KREG_CCR_XCC_N_MASK) ? 'N' : 'n', in mdb_v9printregs() 188 (kregs[KREG_CCR] & KREG_CCR_XCC_Z_MASK) ? 'Z' : 'z', in mdb_v9printregs() 189 (kregs[KREG_CCR] & KREG_CCR_XCC_V_MASK) ? 'V' : 'v', in mdb_v9printregs() 190 (kregs[KREG_CCR] & KREG_CCR_XCC_C_MASK) ? 'C' : 'c', in mdb_v9printregs() 191 (kregs[KREG_CCR] & KREG_CCR_ICC_N_MASK) ? 'N' : 'n', in mdb_v9printregs() 192 (kregs[KREG_CCR] & KREG_CCR_ICC_Z_MASK) ? 'Z' : 'z', in mdb_v9printregs() 193 (kregs[KREG_CCR] & KREG_CCR_ICC_V_MASK) ? 'V' : 'v', in mdb_v9printregs() [all …]
|
H A D | kvm_v7dep.c | 59 kreg_t kregs[KREG_NGREG]; member 123 *rp = kt->k_regs->kregs[rdp->rd_num]; in kt_getareg() 142 kt->k_regs->kregs[rdp->rd_num] = r; in kt_putareg() 155 kreg_t *kregs = &gregs.kregs[0]; in kt_stack_iter() local 156 int got_pc = (gsp->kregs[KREG_PC] != 0); in kt_stack_iter() 167 argv[i] = kregs[KREG_I0 + i]; in kt_stack_iter() 169 if (got_pc && func(arg, kregs[KREG_PC], 6, argv, &gregs) != 0) in kt_stack_iter() 172 kregs[KREG_PC] = kregs[KREG_I7]; in kt_stack_iter() 173 kregs[KREG_NPC] = kregs[KREG_PC] + 4; in kt_stack_iter() 175 bcopy(&kregs[KREG_I0], &kregs[KREG_O0], 8 * sizeof (kreg_t)); in kt_stack_iter() [all …]
|
H A D | kvm_v9dep.c | 78 *rp = kt->k_regs->kregs[rdp->rd_num]; in kt_getareg() 97 kt->k_regs->kregs[rdp->rd_num] = r; in kt_putareg() 132 gregs.kregs[KREG_FP] = addr; in kt_stack_common() 133 gregs.kregs[KREG_I7] = saved_pc; in kt_stack_common() 247 kreg_t *kregs; in kt_sparcv9_init() local 269 kregs = kt->k_regs->kregs; in kt_sparcv9_init() 304 kregs[KREG_CCR] = KREG_TSTATE_CCR(value); in kt_sparcv9_init() 305 kregs[KREG_ASI] = KREG_TSTATE_ASI(value); in kt_sparcv9_init() 306 kregs[KREG_PSTATE] = KREG_TSTATE_PSTATE(value); in kt_sparcv9_init() 307 kregs[KREG_CWP] = KREG_TSTATE_CWP(value); in kt_sparcv9_init() [all …]
|
H A D | mdb_kreg_impl.h | 46 kreg_t kregs[KREG_NGREG]; member
|
/titanic_44/usr/src/cmd/mdb/intel/mdb/ |
H A D | mdb_ia32util.c | 94 const kreg_t *kregs = &gregs->kregs[0]; in mdb_ia32_printregs() local 95 kreg_t eflags = kregs[KREG_EFLAGS]; in mdb_ia32_printregs() 98 kregs[KREG_CS], kregs[KREG_EAX], kregs[KREG_EAX]); in mdb_ia32_printregs() 101 kregs[KREG_DS], kregs[KREG_EBX], kregs[KREG_EBX]); in mdb_ia32_printregs() 104 kregs[KREG_SS], kregs[KREG_ECX], kregs[KREG_ECX]); in mdb_ia32_printregs() 107 kregs[KREG_ES], kregs[KREG_EDX], kregs[KREG_EDX]); in mdb_ia32_printregs() 110 kregs[KREG_FS], kregs[KREG_ESI], kregs[KREG_ESI]); in mdb_ia32_printregs() 113 kregs[KREG_GS], kregs[KREG_EDI], kregs[KREG_EDI]); in mdb_ia32_printregs() 115 mdb_printf("%%eip = 0x%0?p %A\n", kregs[KREG_EIP], kregs[KREG_EIP]); in mdb_ia32_printregs() 116 mdb_printf("%%ebp = 0x%0?p\n", kregs[KREG_EBP]); in mdb_ia32_printregs() [all …]
|
H A D | kvm_ia32dep.c | 74 gregs.kregs[KREG_EBP] = addr; in kt_stack_common() 163 gregs->kregs[KREG_SAVFP] = regs->r_savfp; in kt_regs_to_kregs() 164 gregs->kregs[KREG_SAVPC] = regs->r_savpc; in kt_regs_to_kregs() 165 gregs->kregs[KREG_EAX] = regs->r_eax; in kt_regs_to_kregs() 166 gregs->kregs[KREG_EBX] = regs->r_ebx; in kt_regs_to_kregs() 167 gregs->kregs[KREG_ECX] = regs->r_ecx; in kt_regs_to_kregs() 168 gregs->kregs[KREG_EDX] = regs->r_edx; in kt_regs_to_kregs() 169 gregs->kregs[KREG_ESI] = regs->r_esi; in kt_regs_to_kregs() 170 gregs->kregs[KREG_EDI] = regs->r_edi; in kt_regs_to_kregs() 171 gregs->kregs[KREG_EBP] = regs->r_ebp; in kt_regs_to_kregs() [all …]
|
H A D | kvm_amd64dep.c | 74 gregs.kregs[KREG_RBP] = addr; in kt_stack_common() 163 gregs->kregs[KREG_SAVFP] = regs->r_savfp; in kt_regs_to_kregs() 164 gregs->kregs[KREG_SAVPC] = regs->r_savpc; in kt_regs_to_kregs() 165 gregs->kregs[KREG_RDI] = regs->r_rdi; in kt_regs_to_kregs() 166 gregs->kregs[KREG_RSI] = regs->r_rsi; in kt_regs_to_kregs() 167 gregs->kregs[KREG_RDX] = regs->r_rdx; in kt_regs_to_kregs() 168 gregs->kregs[KREG_RCX] = regs->r_rcx; in kt_regs_to_kregs() 169 gregs->kregs[KREG_R8] = regs->r_r8; in kt_regs_to_kregs() 170 gregs->kregs[KREG_R9] = regs->r_r9; in kt_regs_to_kregs() 171 gregs->kregs[KREG_RAX] = regs->r_rax; in kt_regs_to_kregs() [all …]
|
H A D | mdb_amd64util.c | 142 const kreg_t *kregs = &gregs->kregs[0]; in mdb_amd64_printregs() local 143 kreg_t rflags = kregs[KREG_RFLAGS]; in mdb_amd64_printregs() 145 #define GETREG2(x) ((uintptr_t)kregs[(x)]), ((uintptr_t)kregs[(x)]) in mdb_amd64_printregs() 163 mdb_printf("%%rbp = 0x%0?p\n", kregs[KREG_RBP]); in mdb_amd64_printregs() 164 mdb_printf("%%rsp = 0x%0?p\n", kregs[KREG_RSP]); in mdb_amd64_printregs() 190 " ", kregs[KREG_CS], kregs[KREG_DS], kregs[KREG_ES]); in mdb_amd64_printregs() 193 kregs[KREG_TRAPNO], (kregs[KREG_FS] & 0xffff), in mdb_amd64_printregs() 194 (kregs[KREG_GS] & 0xffff)); in mdb_amd64_printregs() 195 mdb_printf(" %%err = 0x%x\n", kregs[KREG_ERR]); in mdb_amd64_printregs() 203 kreg_t *kregs = &gregs.kregs[0]; in mdb_amd64_kvm_stack_iter() local [all …]
|
H A D | kvm_isadep.c | 60 *rp = kt->k_regs->kregs[rdp->rd_num]; in kt_getareg() 96 kt->k_regs->kregs[rdp->rd_num] = (kreg_t)r; in kt_putareg() 105 kt_kvmregs(mdb_tgt_t *t, uint_t cpuid, mdb_tgt_gregset_t *kregs) in kt_kvmregs() argument 114 kt_regs_to_kregs(&mregs.pm_gregs, kregs); in kt_kvmregs() 165 addr = regs.kregs[KREG_FP]; in kt_cpustack()
|
H A D | mdb_kreg_impl.h | 43 kreg_t kregs[KREG_NGREG]; member
|
/titanic_44/usr/src/cmd/mdb/sparc/kmdb/ |
H A D | kaif_activate.c | 84 kreg_t *kregs = kaif_cb_save.krs_gregs.kregs; in kaif_format_word() local 88 &kregs[KREG_PC], /* 3 */ in kaif_format_word() 89 &kregs[KREG_NPC], /* 4 */ in kaif_format_word() 90 &kregs[KREG_G1], /* 5 */ in kaif_format_word() 91 &kregs[KREG_G2], /* 6 */ in kaif_format_word() 92 &kregs[KREG_G3], /* 7 */ in kaif_format_word() 93 &kregs[KREG_G4], /* 8 */ in kaif_format_word() 94 &kregs[KREG_G5], /* 9 */ in kaif_format_word() 95 &kregs[KREG_G6], /* 10 */ in kaif_format_word() 96 &kregs[KREG_G7], /* 11 */ in kaif_format_word() [all …]
|
H A D | kvm_isadep.c | 76 kreg_t *kregs = &gregs.kregs[0]; in kmt_stack_iter() local 108 wp = kregs[KREG_CWP]; in kmt_stack_iter() 109 canrestore = kregs[KREG_CANRESTORE]; in kmt_stack_iter() 120 argv[i] = kregs[KREG_I0 + i]; in kmt_stack_iter() 122 if (kregs[KREG_PC] != 0 && in kmt_stack_iter() 123 func(arg, kregs[KREG_PC], 6, argv, &gregs) != 0) in kmt_stack_iter() 126 kregs[KREG_PC] = kregs[KREG_I7]; in kmt_stack_iter() 127 kregs[KREG_NPC] = kregs[KREG_PC] + 4; in kmt_stack_iter() 129 if ((sp = kregs[KREG_FP] + STACK_BIAS) == STACK_BIAS || sp == 0) in kmt_stack_iter() 140 bcopy(&kregs[KREG_I0], &kregs[KREG_O0], 8 * sizeof (kreg_t)); in kmt_stack_iter() [all …]
|
H A D | kaif.c | 185 wp = gregs->kregs[KREG_CWP]; in kaif_get_gregs() 187 gregs->kregs[KREG_L0 + i] = save->krs_rwins[wp].rw_local[i]; in kaif_get_gregs() 188 gregs->kregs[KREG_I0 + i] = save->krs_rwins[wp].rw_in[i]; in kaif_get_gregs() 191 gregs->kregs[KREG_PSTATE] = KREG_TSTATE_PSTATE(save->krs_tstate); in kaif_get_gregs() 197 gregs->kregs[KREG_O0 + i] = save->krs_rwins[wp].rw_in[i]; in kaif_get_gregs() 213 win = gregs->kregs[KREG_CWP]; in kaif_find_regp() 239 return (&gregs->kregs[rd->rd_num]); in kaif_find_regp() 887 (void) set_tba((void *)save->krs_gregs.kregs[KREG_TBA]); in kaif_trap_set_saved() 906 regs.r_g1 = kaif_cb_save.krs_gregs.kregs[KREG_G1]; in kaif_kernpanic() 907 regs.r_g2 = kaif_cb_save.krs_gregs.kregs[KREG_G2]; in kaif_kernpanic() [all …]
|
H A D | kaif_off.in | 54 kregs GREG_KREGS
|
/titanic_44/usr/src/cmd/mdb/intel/kmdb/ |
H A D | kvm_isadep.c | 142 gregs.kregs[KREG_FP] = addr; in kmt_stack_common()
|
H A D | kaif.c | 225 return (®s->kregs[rd->rd_num]); in kaif_find_regp()
|