Author: aandrejevic
Date: Mon Jun 2 18:24:58 2014
New Revision: 63534
URL:
http://svn.reactos.org/svn/reactos?rev=63534&view=rev
Log:
[NTVDM]
Initialize the VGA-related BDA data fields.
Modified:
trunk/reactos/subsystems/ntvdm/bios/bios.h
trunk/reactos/subsystems/ntvdm/bios/vidbios.c
Modified: trunk/reactos/subsystems/ntvdm/bios/bios.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/bios/bios…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/bios/bios.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/bios/bios.h [iso-8859-1] Mon Jun 2 18:24:58 2014
@@ -76,7 +76,8 @@
WORD KeybdBufferEnd; // 0x82
BYTE ScreenRows; // 0x84
WORD CharacterHeight; // 0x85
- BYTE EGAFlags[2]; // 0x87
+ BYTE VGAOptions; // 0x87
+ BYTE VGASwitches; // 0x88
BYTE VGAFlags[2]; // 0x89
DWORD Reserved3; // 0x8b
BYTE Reserved4; // 0x8f
Modified: trunk/reactos/subsystems/ntvdm/bios/vidbios.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/bios/vidb…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/bios/vidbios.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/bios/vidbios.c [iso-8859-1] Mon Jun 2 18:24:58 2014
@@ -1572,6 +1572,10 @@
((PULONG)BaseAddress)[0x43] = (ULONG)NULL;
((PULONG)BaseAddress)[0x44] = (ULONG)NULL;
+ /* Initialize the VGA BDA data */
+ Bda->VGAOptions = 0x30; /* 256 KB Video RAM */
+ Bda->VGASwitches = 0x09; /* High-resolution */
+
//
// FIXME: At the moment we always set a VGA mode. In the future,
// we should set this mode **only** when: