mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[NTVDM]
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:
parent
82b6b75ea9
commit
0d91854d88
2 changed files with 15 additions and 1 deletions
|
@ -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];
|
||||
|
|
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue