*/\r
\r
#include "src/lib/16_mm.h"\r
+
+/*\r
+=============================================================================\r
+\r
+ GLOBAL VARIABLES\r
+\r
+=============================================================================\r
+*/\r
+\r
+mminfotype mminfo;\r
+memptr bufferseg;\r
+boolean mmerror;\r
+\r
+void (* beforesort) (void);\r
+void (* aftersort) (void);\r
+\r
+/*\r
+=============================================================================\r
+\r
+ LOCAL VARIABLES\r
+\r
+=============================================================================\r
+*/\r
+\r
+boolean mmstarted;\r
+\r
+void far *farheap;\r
+void *nearheap;\r
+\r
+mmblocktype far mmblocks[MAXBLOCKS]\r
+ ,far *mmhead,far *mmfree,far *mmrover,far *mmnew;\r
+\r
+boolean bombonerror;\r
+\r
+unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
+unsigned int EMSVer;\r
+\r
+void (* XMSaddr) (void); // far pointer to XMS driver\r
+\r
+unsigned numUMBs,UMBbase[MAXUMBS];
+
+static char *ParmStringsexmm[] = {"noems","noxms",""};
\r
/*\r
======================\r
if (MML_CheckForXMS())\r
{\r
// printf("XMS!\n");\r
- MML_SetupXMS(); // allocate as many UMBs as possible\r
+//++++ MML_SetupXMS(); // allocate as many UMBs as possible\r
}\r
\r
//\r
if (!mminfo.mmstarted)\r
return;\r
\r
- _ffree (farheap);\r
- free (nearheap);\r
- hfree(hugeheap);\r
- MML_ShutdownEMS ();\r
- MML_ShutdownXMS ();\r
+ _ffree (farheap);
+ printf("far freed\n");\r
+ free (nearheap);
+ printf("near freed\n");\r
+ //hfree(hugeheap);
+ printf("huge freed\n");\r
+ MML_ShutdownEMS ();
+ printf("EMS freed\n");\r
+//++++ MML_ShutdownXMS ();
+ printf("XMS freed\n");\r
}\r
\r
//==========================================================================\r
}\r
return(-1);\r
}\r
-\r
=============================================================================
*/
-static mminfotype mminfo;
+/*static mminfotype mminfo;
static memptr bufferseg;
static void (* beforesort) (void);
-static void (* aftersort) (void);
+static void (* aftersort) (void);*/
/*
=============================================================================
=============================================================================
*/
-static void huge *hugeheap;
+/*static void huge *hugeheap;
static void far *farheap;
static void *nearheap;
static void (* XMSaddr) (void); // far pointer to XMS driver
-static unsigned numUMBs,UMBbase[MAXUMBS];
-
-static char *ParmStringsexmm[] = {"noems","noxms",""};
+static unsigned numUMBs,UMBbase[MAXUMBS];*/
//==========================================================================