Mail Archives: djgpp/1997/07/24/06:28:03
Gordon Brown writes:
>Does allocating say 1Mb of memory with malloc return a contiguous memory
>array. I am trying to DMA from a PCI board to host memory and do not
>want to go via conventionial memory if possible.
Almost certainly not, and even if it did, it is unlikely to stay
contiguous (any part of it is liable to get moved around your physical
memory and/or swapped out to disk). The only sure way to implement DMA
is to use a conventional memory buffer. The VDS services would be
another possibility, but they aren't supported by CWSDPMI...
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -