From 1f684b0fcb66f1d186999ab4a6a10328e1104b37 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 2 Jul 2015 15:52:10 -0500 Subject: [PATCH] wwww modified: exmmtest.exe modified: src/exmmtest.c modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- exmmtest.exe | Bin 45245 -> 45245 bytes src/exmmtest.c | 3 ++- src/lib/16_mm.c | 4 +++- src/lib/16_mm.h | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index b5f310fefbdcb2d699f757c4337796d10f671f2c..a5e3007406184028a34eba9c03c8d5585a68cb50 100644 GIT binary patch delta 96 zcmdn{kZJEjrVV<`j2V;lnJwA#8D6u9?I_!v&uktd&c#q%l3$?6#lTgWSP7yE^7Dbz y=Dp!^&WzEU@65Wy%c#0}{R&w|VUBPK1!Ziyepn delta 96 zcmdn{kZJEjrVV<`jG2@5nJw817+$l8?I_=z&uktdp2NjZT#{d)$i=`_nOF&;3i9(6 zxi;?&mvd%}*?ec#C0<6A&FfdlG77VYODK3Y7{mmaFmos~*V#)jGjG1X@*W!i)Sn&o diff --git a/src/exmmtest.c b/src/exmmtest.c index e0904292..61d77a30 100644 --- a/src/exmmtest.c +++ b/src/exmmtest.c @@ -49,7 +49,7 @@ main(int argc, char *argv[]) else baka=0; //MM_GetPtr(&bigbuffer, mmi.nearheap, &mm, &mmi); //hmm functions in cache system use the buffered stuff - printf("size of big buffer~=%ul\n", _bmsize(segu, bigbuffer)); + printf("size of big buffer~=%u\n", _bmsize(segu, bigbuffer)); MM_ShowMemory(&mm); MM_Report(&mm, &mmi); printf("stop!\n"); @@ -57,6 +57,7 @@ main(int argc, char *argv[]) MM_Shutdown(&mm); printf("done!\n"); free(bakapee); + //printf("_bios_memsize=%u\n", _bios_memsize()); if(baka) printf("\nyay!\n"); else printf("\npoo!\n"); } diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 492a5119..3fad748b 100644 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -511,7 +511,7 @@ void MML_ClearBlock(mminfo_t *mm) void MM_Startup(mminfo_t *mm, mminfotype *mmi) { int i; - dword length; + dword length;//,farlen; void huge *start; unsigned segstart,seglength,endfree; @@ -542,6 +542,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) mm->mmnew->next = NULL; mm->mmrover = mm->mmhead; +// farlen=_bios_memsize()*1024; // // get all available near conventional memory segments @@ -564,6 +565,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) //---- length=farcoreleft(); _fheapgrow(); length=_memavl(); + //length-=farlen; start = mm->farheap = halloc(length, 1); //start = mm->farheap = _fmalloc(length); length -= 16-(FP_OFF(start)&15); diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index fb99af1d..bef21c03 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -23,6 +23,7 @@ #include #include +//#include #include "src/lib/16_head.h" //++++mh #include "src/lib/16_in.h" -- 2.39.5