From: Alex B. <ker...@be...> - 2004-06-21 15:29:45
|
On Sun, 2004-06-20 at 19:15, Adrian McMenamin wrote: > for (i=0; i<(1<<MAPLE_DMA_PAGES); i++) > dma_cache_wback_inv(maple_sendbuf+i*PAGE_SIZE, PAGE_SIZE); > > > Could someone fill me in? It invalidates the cache lines for the buffer you are DMA'ing so if you read or write a value to the buffer post DMA it forces the processor to pick up the value from memory instead of using the internal cache. Otherwise weirdness can ensue... -- Alex, Kernel Hacker: http://www.bennee.com/~alex/ Hackers are just a migratory lifeform with a tropism for computers. |