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 *****************************************************************/
13 #include <ddk/ntddk.h>
15 #include <internal/debug.h>
17 /* GLOBALS *******************************************************************/
19 static UCHAR OrigIVT[1024];
20 static UCHAR OrigBDA[256];
21 /* static UCHAR OrigEBDA[]; */
23 /* FUNCTIONS *****************************************************************/
29 * Save various BIOS data tables. At this point the lower 4MB memory
30 * map is still active so we can just copy the data from low memory.
32 memcpy(OrigIVT, (PVOID)0x0, 1024);
33 memcpy(OrigBDA, (PVOID)0x400, 256);
36 NTSTATUS STDCALL NtVdmControl(ULONG ControlCode,
42 memcpy(ControlData, OrigIVT, 1024);
46 memcpy(ControlData, OrigBDA, 256);
49 return(STATUS_SUCCESS);