
16 Jun
2012
16 Jun
'12
12:29 a.m.
Dear Ilya Yanok,
This is a draft implementation of cache coherent memory allocator. This simple implementation just reserves memory area below malloc space and leave it uncached even if data cache is enabled. Allocations are even simpler: code just verifies that we have enough space and increments the offset counter. No deallocations supported for now. In future versions we could probably use dlmalloc allocator to get space out of coherent pool.
Signed-off-by: Ilya Yanok ilya.yanok@cogentembedded.com
Hm, can't we just punch a hole in the MMU table at runtime instead of preallocating it like this?
Also, what is this for? Can we not simply flush/invalidate the caches?
Best regards, Marek Vasut