Lines Matching refs:mc

713 	mcontext_t *mc;
729 mc = &uc.uc_mcontext;
730 error = set_mcontext(td, mc);
737 td, mc->_mc_tpc, mc->_mc_sp, mc->_mc_tstate);
757 get_mcontext(struct thread *td, mcontext_t *mc, int flags)
770 mc->_mc_flags = _MC_VERSION;
771 mc->mc_global[1] = tf->tf_global[1];
772 mc->mc_global[2] = tf->tf_global[2];
773 mc->mc_global[3] = tf->tf_global[3];
774 mc->mc_global[4] = tf->tf_global[4];
775 mc->mc_global[5] = tf->tf_global[5];
776 mc->mc_global[6] = tf->tf_global[6];
778 mc->mc_out[0] = 0;
779 mc->mc_out[1] = 0;
781 mc->mc_out[0] = tf->tf_out[0];
782 mc->mc_out[1] = tf->tf_out[1];
784 mc->mc_out[2] = tf->tf_out[2];
785 mc->mc_out[3] = tf->tf_out[3];
786 mc->mc_out[4] = tf->tf_out[4];
787 mc->mc_out[5] = tf->tf_out[5];
788 mc->mc_out[6] = tf->tf_out[6];
789 mc->mc_out[7] = tf->tf_out[7];
790 mc->_mc_fprs = tf->tf_fprs;
791 mc->_mc_fsr = tf->tf_fsr;
792 mc->_mc_gsr = tf->tf_gsr;
793 mc->_mc_tnpc = tf->tf_tnpc;
794 mc->_mc_tpc = tf->tf_tpc;
795 mc->_mc_tstate = tf->tf_tstate;
796 mc->_mc_y = tf->tf_y;
804 bcopy(pcb->pcb_ufp, mc->mc_fp, sizeof(mc->mc_fp));
805 mc->_mc_fprs |= FPRS_FEF;
812 set_mcontext(struct thread *td, mcontext_t *mc)
817 if (!TSTATE_SECURE(mc->_mc_tstate) ||
818 (mc->_mc_flags & ((1L << _MC_VERSION_BITS) - 1)) != _MC_VERSION)
830 tf->tf_global[1] = mc->mc_global[1];
831 tf->tf_global[2] = mc->mc_global[2];
832 tf->tf_global[3] = mc->mc_global[3];
833 tf->tf_global[4] = mc->mc_global[4];
834 tf->tf_global[5] = mc->mc_global[5];
835 tf->tf_global[6] = mc->mc_global[6];
836 tf->tf_out[0] = mc->mc_out[0];
837 tf->tf_out[1] = mc->mc_out[1];
838 tf->tf_out[2] = mc->mc_out[2];
839 tf->tf_out[3] = mc->mc_out[3];
840 tf->tf_out[4] = mc->mc_out[4];
841 tf->tf_out[5] = mc->mc_out[5];
842 tf->tf_out[6] = mc->mc_out[6];
843 tf->tf_out[7] = mc->mc_out[7];
844 tf->tf_fprs = mc->_mc_fprs;
845 tf->tf_fsr = mc->_mc_fsr;
846 tf->tf_gsr = mc->_mc_gsr;
847 tf->tf_tnpc = mc->_mc_tnpc;
848 tf->tf_tpc = mc->_mc_tpc;
849 tf->tf_tstate = mc->_mc_tstate;
850 tf->tf_y = mc->_mc_y;
851 if ((mc->_mc_fprs & FPRS_FEF) != 0) {
853 bcopy(mc->mc_fp, pcb->pcb_ufp, sizeof(pcb->pcb_ufp));