Implement the XMS functions AH = 03h and AH = 04h (global enable/disable A20).
Make the GetHandleRecord function in the EMS driver inline.
CORE-8277 #comment Please retest.


svn path=/trunk/; revision=67352
This commit is contained in:
Aleksandar Andrejevic 2015-04-22 19:56:50 +00:00
parent 82b6b75ea9
commit 0d91854d88
2 changed files with 15 additions and 1 deletions

View file

@ -35,7 +35,7 @@ static PVOID EmsMemory = NULL;
/* PRIVATE FUNCTIONS **********************************************************/
static PEMS_HANDLE GetHandleRecord(USHORT Handle)
static inline PEMS_HANDLE GetHandleRecord(USHORT Handle)
{
if (Handle >= EMS_MAX_HANDLES) return NULL;
return &HandleTable[Handle];

View file

@ -164,6 +164,20 @@ static VOID WINAPI XmsBopProcedure(LPWORD Stack)
break;
}
/* Global Enable A20 */
case 0x03:
{
EmulatorSetA20(TRUE);
break;
}
/* Global Disable A20 */
case 0x04:
{
EmulatorSetA20(FALSE);
break;
}
/* Query Free Extended Memory */
case 0x08:
{