TRAPNO
mdb_printf("%%trapno = 0x%x\n", grs[TRAPNO]);
{ "trapno", TRAPNO, MDB_TGT_R_EXPORT },
dst[TRAPNO] = src[REG_TRAPNO];
disp_reg_line(ph, &pstatus, "trapno", TRAPNO, "err", ERR);
ps->pr_lwp.pr_reg[TRAPNO] = cp->user.u_reg[TRAPNO];
ps->pr_lwp.pr_reg[TRAPNO] = cp->user.u_reg[TRAPNO];
cp->user.u_reg[TRAPNO] = ps->pr_lwp.pr_reg[TRAPNO];
ucp->uc_mcontext.gregs[TRAPNO] = 0;
dst[REG_TRAPNO] = (uint32_t)src[TRAPNO];
dst[REG_TRAPNO] = (uint32_t)src[TRAPNO];
dst[TRAPNO] = src[REG_TRAPNO];
dst[REG_TRAPNO] = (uint32_t)src[TRAPNO];
grp[TRAPNO] = (greg32_t)rp->r_trapno;
dmc->gregs[REG_TRAPNO] = (greg_t)(uint32_t)smc->gregs[TRAPNO];