Implement missing KDGETMODE IOCTL in VT.

Obtained from:	Johannes Lundberg <yohanesu75@gmail.com>
Sponsored by:	Mellanox Technologies
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2017-11-11 20:12:48 +00:00
parent 0ab69d713c
commit 5c4155867a

View File

@ -2161,6 +2161,10 @@ skip_thunk:
return (error);
}
case KDGETMODE:
*(int *)data = (vw->vw_flags & VWF_GRAPHICS) ?
KD_GRAPHICS : KD_TEXT;
return (0);
case KDGKBMODE: {
error = 0;