mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[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). svn path=/branches/ntvdm/; revision=61288
This commit is contained in:
parent
1241dffa09
commit
a27abed335
2 changed files with 52 additions and 2 deletions
|
@ -19,6 +19,9 @@
|
|||
#include "vga.h"
|
||||
#include "pic.h"
|
||||
|
||||
// HACK
|
||||
typedef INT VDM_MODE;
|
||||
|
||||
/* PRIVATE VARIABLES **********************************************************/
|
||||
|
||||
FAST486_STATE EmulatorContext;
|
||||
|
@ -173,7 +176,10 @@ VOID EmulatorSetA20(BOOLEAN Enabled)
|
|||
|
||||
|
||||
|
||||
PBYTE WINAPI Sim32pGetVDMPointer(ULONG Address, BOOL ProtectedMode)
|
||||
PBYTE
|
||||
WINAPI
|
||||
Sim32pGetVDMPointer(IN ULONG Address,
|
||||
IN BOOL ProtectedMode)
|
||||
{
|
||||
// FIXME
|
||||
UNREFERENCED_PARAMETER(ProtectedMode);
|
||||
|
@ -186,10 +192,50 @@ PBYTE WINAPI Sim32pGetVDMPointer(ULONG Address, BOOL ProtectedMode)
|
|||
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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue