Author: hbelusca Date: Tue Dec 17 23:03:23 2013 New Revision: 61288
URL: http://svn.reactos.org/svn/reactos?rev=61288&view=rev Log: [NTVDM] - Halfplement and export VdmMapFlat - Make mention of the existence of VdmFlushCache and VdmUnmapFlat, which are not exported in x86 builds (macros are therefore defined to just return TRUE) but are exported in MIPS... builds... See VDDSVC.H and NT_VDD.H in the DDK (those headers don't exist in ROS; we'll have to create them later on).
Modified: branches/ntvdm/subsystems/ntvdm/emulator.c branches/ntvdm/subsystems/ntvdm/ntvdm.spec
Modified: branches/ntvdm/subsystems/ntvdm/emulator.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/emulator.... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/emulator.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/emulator.c [iso-8859-1] Tue Dec 17 23:03:23 2013 @@ -18,6 +18,9 @@ #include "registers.h" #include "vga.h" #include "pic.h" + +// HACK +typedef INT VDM_MODE;
/* PRIVATE VARIABLES **********************************************************/
@@ -173,7 +176,10 @@
-PBYTE WINAPI Sim32pGetVDMPointer(ULONG Address, BOOL ProtectedMode) +PBYTE +WINAPI +Sim32pGetVDMPointer(IN ULONG Address, + IN BOOL ProtectedMode) { // FIXME UNREFERENCED_PARAMETER(ProtectedMode); @@ -186,10 +192,50 @@ return SEG_OFF_TO_PTR(HIWORD(Address), LOWORD(Address)); }
-PBYTE WINAPI MGetVdmPointer(ULONG Address, ULONG Size, BOOL ProtectedMode) +PBYTE +WINAPI +MGetVdmPointer(IN ULONG Address, + IN ULONG Size, + IN BOOL ProtectedMode) { UNREFERENCED_PARAMETER(Size); return Sim32pGetVDMPointer(Address, ProtectedMode); }
+PVOID +WINAPI +VdmMapFlat(IN USHORT Segment, + IN ULONG Offset, + IN VDM_MODE Mode) +{ + // FIXME + UNREFERENCED_PARAMETER(Mode); + + return SEG_OFF_TO_PTR(Segment, Offset); +} + +BOOL +WINAPI +VdmFlushCache(IN USHORT Segment, + IN ULONG Offset, + IN ULONG Size, + IN VDM_MODE Mode) +{ + // FIXME + UNIMPLEMENTED; + return TRUE; +} + +BOOL +WINAPI +VdmUnmapFlat(IN USHORT Segment, + IN ULONG Offset, + IN PVOID Buffer, + IN VDM_MODE Mode) +{ + // FIXME + UNIMPLEMENTED; + return TRUE; +} + /* EOF */
Modified: branches/ntvdm/subsystems/ntvdm/ntvdm.spec URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/ntvdm.spe... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/ntvdm.spec [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/ntvdm.spec [iso-8859-1] Tue Dec 17 23:03:23 2013 @@ -91,3 +91,7 @@
@ stdcall MGetVdmPointer(long long long) @ stdcall Sim32pGetVDMPointer(long long) + +;@ stdcall VdmFlushCache(long long long long) ; Not exported on x86 +@ stdcall VdmMapFlat(long long long) +;@ stdcall VdmUnmapFlat(long long ptr long) ; Not exported on x86