1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Synchronize with sys/i386/isa/syscons.c revision 1.215.

This commit is contained in:
KATO Takenori 1997-05-08 09:22:32 +00:00
parent ba23eebe8c
commit bf7df4cf6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25574

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.37 1997/05/01 11:28:49 kato Exp $
* $Id: syscons.c,v 1.38 1997/05/07 14:17:38 kato Exp $
*/
#include "sc.h"
@ -851,7 +851,6 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
int error;
u_int i;
struct tty *tp;
struct trapframe *fp;
scr_stat *scp;
tp = scdevtotty(dev);
@ -1342,13 +1341,11 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
return error;
if (securelevel > 0)
return EPERM;
fp = (struct trapframe *)p->p_md.md_regs;
fp->tf_eflags |= PSL_IOPL;
p->p_md.md_regs->tf_eflags |= PSL_IOPL;
return 0;
case KDDISABIO: /* disallow io operations (default) */
fp = (struct trapframe *)p->p_md.md_regs;
fp->tf_eflags &= ~PSL_IOPL;
p->p_md.md_regs->tf_eflags &= ~PSL_IOPL;
return 0;
case KDSETMODE: /* set current mode of this (virtual) console */