Re: (reposting) how to get DMA'able memory within 4GB on 64-bit m

Chris Wedgwood
2001-07-11T21:54:45Z

On Wed, Jul 11, 2001 at 09:16:50PM +0200, Jes Sorensen wrote:

The overhead is going be negligeble, the overhead of highmem itself is
much worse. Not to mention that today some dma_addr_t's might not be
packed properly in data structure hence they ending up taking 8 bytes
anyway.

What kind of packing makes a 32-bit value take 8-bytes on any
currently supported archicture? The worst-case I can think of is
7-bytes in the case of misaligned by 3 (e.g. __attribute__((packed))
struct blah { char foo[3]; long bar }; sort of thing).

--cw