mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-03-20 03:31:27 +00:00
Update memmgr library
This commit is contained in:
parent
d0eb8a5897
commit
430b70f931
BIN
PLASMA-SYS2.PO
BIN
PLASMA-SYS2.PO
Binary file not shown.
@ -544,7 +544,7 @@ export def hmemNew(size)
|
||||
//
|
||||
// Allocate 3/4 of available heap on 128K machine, 1/2 on 64K machine
|
||||
//
|
||||
poolsize = ((@page - heapmark) >> 1) & $7FFF
|
||||
poolsize = (heapavail >> 1) & $7FFF
|
||||
if MACHID & $30 == $30
|
||||
poolsize = poolsize + (poolsize >> 1)
|
||||
fin
|
||||
@ -666,7 +666,7 @@ end
|
||||
// !!! Does this work on Apple ///???
|
||||
//
|
||||
sysbuf = $0800 // heapallocalign(1024, 8, 0)
|
||||
initdata = heapmark // Use data at top of heap for initialization
|
||||
initdata = heapalloc(t_initdata) // Use data on heap for initialization
|
||||
initdata=>volparms.0 = 2
|
||||
initdata=>volparms.1 = 0
|
||||
initdata=>volparms:2 = sysbuf
|
||||
@ -733,5 +733,6 @@ repeat
|
||||
fin
|
||||
until !initdata->filecnt
|
||||
fileio:close(initdata->catref)
|
||||
heaprelease(initdata)
|
||||
//puts(@swapvol); putln
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user