[comp.sys.amiga.tech] MEMF_PUBLIC

SLMYQ@USU.BITNET (04/18/88)

Probably what we'll need to do when the Amiga gets memory management hardware
and software is to add another flag into the hunk types of code, data, and
bss hunks.  Call it HUNK.XXXX.SWAP or something like that.  If this flag
is not present, then this memory will be allocated using MEMF_PUBLIC.  If it
is included, then allocate it private and make it swappable.  That would take
care of the memory allocated by the loader, but for memory allocated by
the program itself something else would be needed.  Maybe there should be
a flag somewhere in the HUNK.HEADER which tells the system that this program
wants private memory when it doesn't specify MEMF_PUBLIC.  If this flag is
cleared, then all allocated memory will be MEMF_PUBLIC whether it was
specified or not.  To implement it, just make it correspond to a flag in the
Task structure which tells AllocMem to ALWAYS allocate MEMF_PUBLIC for this
task.  This would be the default unless the program changed it or it was
set by the loader.}i

                                Bryan Ford (SLMYQ@USU.BITNET)