2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/nt/vdm.c
5 * PURPOSE: Virtual DOS machine support
6 * PROGRAMMER: David Welch (welch@mcmail.com)
11 /* INCLUDES *****************************************************************/
16 #include <internal/debug.h>
19 /* GLOBALS *******************************************************************/
21 static UCHAR OrigIVT
[1024];
22 static UCHAR OrigBDA
[256];
23 /* static UCHAR OrigEBDA[]; */
25 /* FUNCTIONS *****************************************************************/
31 * Save various BIOS data tables. At this point the lower 4MB memory
32 * map is still active so we can just copy the data from low memory.
34 memcpy(OrigIVT
, (PVOID
)0x0, 1024);
35 memcpy(OrigBDA
, (PVOID
)0x400, 256);
39 NtVdmControl(IN ULONG ControlCode
,
45 memcpy(ControlData
, OrigIVT
, 1024);
49 memcpy(ControlData
, OrigBDA
, 256);
52 return(STATUS_SUCCESS
);