Quantcast
Viewing all articles
Browse latest Browse all 5332

C/C++ • Re: Allocate memory for DMA on Raspberry Pi 5

The default memset from gcc uses a data cache clear instruction which won't work on uncached buffers (which a mmap from above top of memory will be). Replace it with a less optimised memset.
Ok, thanks you.

Then I now have the problem of how to get a physical address from the virtual address.
Or does the allocated block start exactly at 0xc1800000 and I can use the offset to get the exact physical address of the allocated mem for DMA

Statistics: Posted by drLaplace — Wed Nov 20, 2024 9:05 am



Viewing all articles
Browse latest Browse all 5332

Trending Articles