Author: aandrejevic
Date: Tue Aug 30 02:13:40 2016
New Revision: 72508
URL:
http://svn.reactos.org/svn/reactos?rev=72508&view=rev
Log:
[NTVDM:EMS]
Implement EMS function 4E/03: "Get Size of Page-Mapping Array".
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/emsdrv.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/emsdrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/emsdrv.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/emsdrv.c [iso-8859-1] Tue Aug 30
02:13:40 2016
@@ -394,6 +394,39 @@
break;
}
+ /* Get or Set Page Map */
+ case 0x4E:
+ {
+ switch (getAL())
+ {
+ /* Get Mapping Registers */
+ // case 0x00: // TODO: NOT IMPLEMENTED
+
+ /* Set Mapping Registers */
+ // case 0x01: // TODO: NOT IMPLEMENTED
+
+ /* Get and Set Mapping Registers At Once */
+ // case 0x02: // TODO: NOT IMPLEMENTED
+
+ /* Get Size of Page-Mapping Array */
+ case 0x03:
+ {
+ setAH(EMS_STATUS_SUCCESS);
+ setAL(sizeof(Mapping));
+ break;
+ }
+
+ default:
+ {
+ DPRINT1("EMS function AH = 0x4E, subfunction AL = %02X NOT
IMPLEMENTED\n", getAL());
+ setAH(EMS_STATUS_UNKNOWN_FUNCTION);
+ break;
+ }
+ }
+
+ break;
+ }
+
/* Get/Set Handle Name */
case 0x53:
{