View | Details | Raw Unified | Return to bug 194828 | Differences between
and this patch

Collapse All | Expand All

(-)machdep.c (-1 / +2 lines)
Lines 3858-3864 set_mcontext(struct thread *td, const mcontext_t * Link Here
3858
	int eflags, ret;
3858
	int eflags, ret;
3859
3859
3860
	tp = td->td_frame;
3860
	tp = td->td_frame;
3861
	if (mcp->mc_len != sizeof(*mcp))
3861
	if (mcp->mc_len != sizeof(*mcp) ||
3862
	    (mcp->mc_flags & ~_MC_FLAG_MASK) != 0)
3862
		return (EINVAL);
3863
		return (EINVAL);
3863
	eflags = (mcp->mc_eflags & PSL_USERCHANGE) |
3864
	eflags = (mcp->mc_eflags & PSL_USERCHANGE) |
3864
	    (tp->tf_eflags & ~PSL_USERCHANGE);
3865
	    (tp->tf_eflags & ~PSL_USERCHANGE);

Return to bug 194828