Yes, you are right. For simplicity, I'm using a free memory block at the end of the RAM address range for DMA without a device driver nor an additional scatter/gather complexity.Do I interpret it correctly that you have taken the top 32MB of RAM out of the linux address space and use that as the shared mem ?
I found this idea in the following article:
http://blog.fakultaet-technik.de/develo ... oot-files/
Later I found that a similar approach is used in the Linux kernel and know as Contiguous Memory Allocator (CMA). Here is how it reports its status at the very beginning of the Linux boot:
Code: Select all
cma: Reserved 16 MiB at 0x1c000000