Home
last modified time | relevance | path

Searched refs:mpcb (Results 1 – 13 of 13) sorted by relevance

/titanic_44/usr/src/uts/sparc/v9/os/
H A Dv9dep.c87 struct machpcb *mpcb; in setfpregs() local
92 mpcb = lwptompcb(lwp); in setfpregs()
140 pfp->fpu_q = mpcb->mpcb_fpu_q; in setfpregs()
478 struct machpcb *mpcb = lwptompcb(lwp); in setgwins() local
486 if (mpcb->mpcb_wstate == WSTATE_USER32) { in setgwins()
494 mpcb->mpcb_wbcnt = 0; in setgwins()
497 mpcb->mpcb_spbuf[i] = sp; in setgwins()
499 (mpcb->mpcb_wbuf + (i * wbuf_rwindow_size)); in setgwins()
504 mpcb->mpcb_wbcnt++; in setgwins()
511 struct machpcb *mpcb = lwptompcb(lwp); in setgwins32() local
[all …]
H A Dsimulator.c850 machpcb_t *mpcb = lwptompcb(ttolwp(curthread)); in simulate_unimp() local
864 mpcb->mpcb_illexcaddr = addr; in simulate_unimp()
865 mpcb->mpcb_illexcinsn = (uint32_t)-1; in simulate_unimp()
879 if (addr != mpcb->mpcb_illexcaddr || in simulate_unimp()
880 inst != mpcb->mpcb_illexcinsn) in simulate_unimp()
882 mpcb->mpcb_illexcaddr = addr; in simulate_unimp()
883 mpcb->mpcb_illexcinsn = inst; in simulate_unimp()
931 mpcb->mpcb_illexccnt = 0; in simulate_unimp()
941 if (mpcb->mpcb_illexccnt >= 3) in simulate_unimp()
944 mpcb->mpcb_illexccnt += 1; in simulate_unimp()
[all …]
/titanic_44/usr/src/uts/sun4/os/
H A Dmachdep.c127 struct machpcb *mpcb; in lwp_stk_init() local
136 mpcb = (struct machpcb *)stk; in lwp_stk_init()
137 bzero(mpcb, sizeof (struct machpcb)); in lwp_stk_init()
139 lwp->lwp_regs = (void *)&mpcb->mpcb_regs; in lwp_stk_init()
141 mpcb->mpcb_fpu = fp; in lwp_stk_init()
142 mpcb->mpcb_fpu->fpu_q = mpcb->mpcb_fpu_q; in lwp_stk_init()
143 mpcb->mpcb_thread = lwp->lwp_thread; in lwp_stk_init()
144 mpcb->mpcb_wbcnt = 0; in lwp_stk_init()
146 mpcb->mpcb_wstate = WSTATE_USER32; in lwp_stk_init()
147 mpcb->mpcb_wbuf = kmem_cache_alloc(wbuf32_cache, KM_SLEEP); in lwp_stk_init()
[all …]
H A Dmlsetup.c124 struct machpcb *mpcb; in mlsetup() local
174 mpcb = lwptompcb(&lwp0); in mlsetup()
175 mpcb->mpcb_fpu = fp; in mlsetup()
176 mpcb->mpcb_fpu->fpu_q = mpcb->mpcb_fpu_q; in mlsetup()
177 mpcb->mpcb_thread = &t0; in mlsetup()
178 lwp0.lwp_fpu = (void *)mpcb->mpcb_fpu; in mlsetup()
223 mpcb->mpcb_pa = va_to_pa(t0.t_stk); in mlsetup()
H A Dtrap.c147 struct machpcb *mpcb = NULL; in trap() local
206 mpcb = lwptompcb(lwp); in trap()
254 mpcb->mpcb_flags &= ~FP_TRAPPED; in trap()
256 if (mpcb->mpcb_flags & FP_TRAPPED) { in trap()
262 mpcb->mpcb_flags &= ~FP_TRAPPED; in trap()
1145 } else if (mpcb->mpcb_wbcnt) { in trap()
/titanic_44/usr/src/uts/sparc/dtrace/
H A Ddtrace_isa.c751 struct machpcb *mpcb; in dtrace_getreg() local
803 mpcb = (struct machpcb *)((caddr_t)rp - REGOFF); in dtrace_getreg()
808 if (mpcb->mpcb_wbcnt > 0) { in dtrace_getreg()
809 struct rwindow *rwin = (void *)mpcb->mpcb_wbuf; in dtrace_getreg()
810 int i = mpcb->mpcb_wbcnt; in dtrace_getreg()
813 if ((long)mpcb->mpcb_spbuf[i] == rp->r_sp) in dtrace_getreg()
824 if (mpcb->mpcb_wbcnt > 0) { in dtrace_getreg()
825 struct rwindow32 *rwin = (void *)mpcb->mpcb_wbuf; in dtrace_getreg()
826 int i = mpcb->mpcb_wbcnt; in dtrace_getreg()
829 if ((long)mpcb->mpcb_spbuf[i] == rp->r_sp) in dtrace_getreg()
[all …]
H A Dfasttrap_isa.c1388 struct machpcb *mpcb; in fasttrap_getreg() local
1423 mpcb = (struct machpcb *)((caddr_t)rp - REGOFF); in fasttrap_getreg()
1428 if (mpcb->mpcb_wbcnt > 0) { in fasttrap_getreg()
1429 struct rwindow *rwin = (void *)mpcb->mpcb_wbuf; in fasttrap_getreg()
1430 int i = mpcb->mpcb_wbcnt; in fasttrap_getreg()
1433 if ((long)mpcb->mpcb_spbuf[i] != rp->r_sp) in fasttrap_getreg()
1448 if (mpcb->mpcb_wbcnt > 0) { in fasttrap_getreg()
1449 struct rwindow32 *rwin = (void *)mpcb->mpcb_wbuf; in fasttrap_getreg()
1450 int i = mpcb->mpcb_wbcnt; in fasttrap_getreg()
1453 if ((long)mpcb->mpcb_spbuf[i] != rp->r_sp) in fasttrap_getreg()
[all …]
/titanic_44/usr/src/uts/sparc/fs/proc/
H A Dprmachdep.c905 struct machpcb *mpcb = lwptompcb(lwp); in prstop() local
911 if (mpcb->mpcb_wstate == WSTATE_USER32) { in prstop()
934 for (i = 0; i < mpcb->mpcb_wbcnt; i++) { in prstop()
935 if (sp == mpcb->mpcb_spbuf[i]) { in prstop()
937 bcopy(mpcb->mpcb_wbuf + in prstop()
944 (mpcb->mpcb_wbuf + in prstop()
1009 struct machpcb *mpcb = lwptompcb(lwp); in prnwindows() local
1011 return (mpcb->mpcb_wbcnt); in prnwindows()
/titanic_44/usr/src/uts/sun4u/sys/
H A Dmachcpuvar.h98 struct machpcb *mpcb; member
/titanic_44/usr/src/uts/sparc/os/
H A Dsyscall.c97 struct machpcb *mpcb = lwptompcb(lwp); in xregrestore() local
130 mpcb->mpcb_rsp[0] = sp; in xregrestore()
131 mpcb->mpcb_rsp[1] = NULL; in xregrestore()
132 bcopy(&lwp->lwp_pcb.pcb_xregs, &mpcb->mpcb_rwin[0], in xregrestore()
/titanic_44/usr/src/uts/sun4v/sys/
H A Dmachcpuvar.h112 struct machpcb *mpcb; member
/titanic_44/usr/src/uts/sun4/ml/
H A Doffsets.in374 cpu_m.mpcb CPU_MPCB
H A Dswtch.s321 stx %o0, [%i1 + CPU_MPCB] ! set CPU's mpcb pointer