Author: aandrejevic
Date: Mon Nov 11 17:59:04 2013
New Revision: 60946
URL:
http://svn.reactos.org/svn/reactos?rev=60946&view=rev
Log:
[NTVDM]
Implement CMOS registers 15h, 16h, 17h and 18h.
Modified:
branches/ntvdm/subsystems/ntvdm/cmos.c
branches/ntvdm/subsystems/ntvdm/cmos.h
Modified: branches/ntvdm/subsystems/ntvdm/cmos.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/cmos.c?r…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/cmos.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/cmos.c [iso-8859-1] Mon Nov 11 17:59:04 2013
@@ -11,6 +11,7 @@
#define NDEBUG
#include "cmos.h"
+#include "bios.h"
#include "pic.h"
/* PRIVATE VARIABLES **********************************************************/
@@ -134,6 +135,18 @@
/* Return the old value */
return Value;
}
+
+ case CMOS_REG_BASE_MEMORY_LOW:
+ return Bda->MemorySize & 0xFF;
+
+ case CMOS_REG_BASE_MEMORY_HIGH:
+ return Bda->MemorySize >> 8;
+
+ case CMOS_REG_EXT_MEMORY_LOW:
+ return ((MAX_ADDRESS - 0x100000) / 1024) & 0xFF;
+
+ case CMOS_REG_EXT_MEMORY_HIGH:
+ return ((MAX_ADDRESS - 0x100000) / 1024) >> 8;
case CMOS_REG_STATUS_A:
case CMOS_REG_STATUS_B:
Modified: branches/ntvdm/subsystems/ntvdm/cmos.h
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/cmos.h?r…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/cmos.h [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/cmos.h [iso-8859-1] Mon Nov 11 17:59:04 2013
@@ -67,9 +67,12 @@
CMOS_REG_STATUS_D,
CMOS_REG_DIAGNOSTICS,
CMOS_REG_SHUTDOWN_STATUS,
+ CMOS_REG_BASE_MEMORY_LOW = 0x15,
+ CMOS_REG_BASE_MEMORY_HIGH = 0x16,
+ CMOS_REG_EXT_MEMORY_LOW = 0x17,
+ CMOS_REG_EXT_MEMORY_HIGH = 0x18,
CMOS_REG_MAX = 0x40
} CMOS_REGISTERS, *PCMOS_REGISTERS;
-
/*
* CMOS Memory Map