printf("MML_UseSpace: Segment spans two blocks!");
return;
}
-
+
if (segstart == scan->start)
{
if (MML_CheckForEMS())
{
- printf("EMS!\n");
+ //printf("EMS1\n");
MML_SetupEMS(); // allocate space
+ //printf("EMS2\n");
MML_UseSpace (EMSpageframe,EMSpagesmapped*0x400);
+ //printf("EMS3\n");
MM_MapEMS(); // map in used pages
+ //printf("EMS4\n");
mminfo.EMSmem = EMSpagesmapped*0x4000l;
}
if (MML_CheckForXMS())
{
- printf("XMS!\n");
+// printf("XMS!\n");
MML_SetupXMS(); // allocate as many UMBs as possible
}
=============================================================================
*/
-mminfotype mminfo;
-memptr bufferseg;
-boolean mmerror;
+static mminfotype mminfo;
+static memptr bufferseg;
+static boolean mmerror;
-void (* beforesort) (void);
-void (* aftersort) (void);
-
-static char *ParmStringsexmm[] = {"noems","noxms",""};
+static void (* beforesort) (void);
+static void (* aftersort) (void);
/*
=============================================================================
=============================================================================
*/
-boolean mmstarted;
+static boolean mmstarted;
-void huge *hugeheap;
-void far *farheap;
-void *nearheap;
+static void huge *hugeheap;
+static void far *farheap;
+static void *nearheap;
-mmblocktype far mmblocks[MAXBLOCKS]
+static mmblocktype far mmblocks[MAXBLOCKS]
,far *mmhead,far *mmfree,far *mmrover,far *mmnew;
-boolean bombonerror;
+static boolean bombonerror;
-unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
+static unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
-void (* XMSaddr) (void); // far pointer to XMS driver
+static void (* XMSaddr) (void); // far pointer to XMS driver
-unsigned numUMBs,UMBbase[MAXUMBS];
+static unsigned numUMBs,UMBbase[MAXUMBS];
+
+static char *ParmStringsexmm[] = {"noems","noxms",""};
//==========================================================================