mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTVDM]
Implement EMS functions AH = 47h and AH = 48h (Save/Restore Page Map). svn path=/trunk/; revision=67574
This commit is contained in:
parent
ea58ec7edb
commit
5f9be9e447
1 changed files with 16 additions and 0 deletions
|
@ -162,6 +162,8 @@ static USHORT EmsMap(USHORT Handle, UCHAR PhysicalPage, USHORT LogicalPage)
|
|||
|
||||
static VOID WINAPI EmsIntHandler(LPWORD Stack)
|
||||
{
|
||||
static PVOID MappingBackup[EMS_PHYSICAL_PAGES] = { NULL };
|
||||
|
||||
switch (getAH())
|
||||
{
|
||||
/* Get Manager Status */
|
||||
|
@ -221,6 +223,20 @@ static VOID WINAPI EmsIntHandler(LPWORD Stack)
|
|||
break;
|
||||
}
|
||||
|
||||
/* Save Page Map */
|
||||
case 0x47:
|
||||
{
|
||||
RtlCopyMemory(MappingBackup, Mapping, sizeof(PVOID) * EMS_PHYSICAL_PAGES);
|
||||
break;
|
||||
}
|
||||
|
||||
/* Restore Page Map */
|
||||
case 0x48:
|
||||
{
|
||||
RtlCopyMemory(Mapping, MappingBackup, sizeof(PVOID) * EMS_PHYSICAL_PAGES);
|
||||
break;
|
||||
}
|
||||
|
||||
/* Get/Set Handle Name */
|
||||
case 0x53:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue