[U-Boot] [PATCH] ARM: support for cache coherent allocations

Marek Vasut marek.vasut at gmail.com
Sat Jun 16 00:29:23 CEST 2012


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 at 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


More information about the U-Boot mailing list