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:
hselasky 2017-11-11 20:12:48 +00:00
parent 7c06f090ee
commit 01a8046591

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;