Date: Fri, 6 Dec 2013 23:12:22 +0000 (UTC) From: Aleksandr Rybalko <ray@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259049 - head/sys/dev/vt Message-ID: <201312062312.rB6NCMbg072267@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ray Date: Fri Dec 6 23:12:21 2013 New Revision: 259049 URL: http://svnweb.freebsd.org/changeset/base/259049 Log: Fix td_frame flags for i386. Submitted by: jilles Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_core.c ============================================================================== --- head/sys/dev/vt/vt_core.c Fri Dec 6 23:02:57 2013 (r259048) +++ head/sys/dev/vt/vt_core.c Fri Dec 6 23:12:21 2013 (r259049) @@ -1459,12 +1459,16 @@ vtterm_ioctl(struct terminal *tm, u_long error = securelevel_gt(td->td_ucred, 0); if (error != 0) return (error); -#if defined(__i386__) || defined(__amd64__) +#if defined(__i386__) + td->td_frame->tf_eflags |= PSL_IOPL; +#elif defined(__amd64__) td->td_frame->tf_rflags |= PSL_IOPL; #endif return (0); case KDDISABIO: /* disallow io operations (default) */ -#if defined(__i386__) || defined(__amd64__) +#if defined(__i386__) + td->td_frame->tf_eflags &= ~PSL_IOPL; +#elif defined(__amd64__) td->td_frame->tf_rflags &= ~PSL_IOPL; #endif return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312062312.rB6NCMbg072267>