Mail Archives: djgpp/1997/05/15/20:48:03
Andrea Martino (amartino AT iiic DOT ethz DOT ch) writes:
> I have a problem with DJGPP memory features...
>
> I would like to choose where my data will be stored (in physical memory
> or in the virtual one), because I will to store my 3D world in RAM and
> other things like data-bases in virtual memory.
Store the virtual world in memory in whatever you like (arrays, structs,
and that); then, for each such area after it has been mallocked, call
_go32_lock_physical_memory (start addr, end addr) IIRC. (or is it start
addr,size?)
Or, if you are using Allegro, use LOCK_VARIABLE(my_var) which is a macro
in Allegro that does the same job, and is there mainly for locking memory
touched by timer and vtrace interrupts.
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -