OSDN Git Service

wwww
authorsparky4 <sparky4@cock.li>
Sat, 27 Jun 2015 20:47:33 +0000 (15:47 -0500)
committersparky4 <sparky4@cock.li>
Sat, 27 Jun 2015 20:47:33 +0000 (15:47 -0500)
Signed-off-by: sparky4 <sparky4@cock.li>
exmmtest.exe
src/lib/16_mm.c
src/lib/16_mm.h

index 35db5fc..04e9e55 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index cfbb3d4..9dbc0ee 100644 (file)
@@ -507,6 +507,7 @@ void MM_Startup (void)
 // get all available near conventional memory segments\r
 //\r
 //---- length=coreleft();\r
+       _nheapgrow();\r
        length=_memavl();\r
        start = (void far *)(nearheap = malloc(length));\r
 \r
@@ -521,7 +522,8 @@ void MM_Startup (void)
 // get all available far conventional memory segments\r
 //\r
 //---- length=farcoreleft();\r
-       length=_memmax();\r
+       _fheapgrow();\r
+       length=_memavl();\r
        start = farheap = _fmalloc(length);\r
        length -= 16-(FP_OFF(start)&15);\r
        length -= SAVEFARHEAP;\r
index f2b41c2..fceb155 100644 (file)
@@ -79,8 +79,8 @@
 #define        XMS_FREEUMB             0x11
 
 //==========================================================================
-__segment                seg;
-typedef void __based(seg) * memptr;
+//__segment                seg;
+typedef void __based(__self) * memptr; //__based(seg) * memptr;
 
 typedef struct
 {