From: sparky4 Date: Sat, 27 Jun 2015 20:47:33 +0000 (-0500) Subject: wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7df8d617ba84f4a3e2bcff29f7d1ea717f595296;p=16.git wwww Signed-off-by: sparky4 --- diff --git a/exmmtest.exe b/exmmtest.exe index 35db5fc1..04e9e550 100644 Binary files a/exmmtest.exe and b/exmmtest.exe differ diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index cfbb3d45..9dbc0eef 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -507,6 +507,7 @@ void MM_Startup (void) // get all available near conventional memory segments // //---- length=coreleft(); + _nheapgrow(); length=_memavl(); start = (void far *)(nearheap = malloc(length)); @@ -521,7 +522,8 @@ void MM_Startup (void) // get all available far conventional memory segments // //---- length=farcoreleft(); - length=_memmax(); + _fheapgrow(); + length=_memavl(); start = farheap = _fmalloc(length); length -= 16-(FP_OFF(start)&15); length -= SAVEFARHEAP; diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index f2b41c2c..fceb1550 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -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 {