Hello Daniel,

On 01/12/14 15:33, Daniel Hellstrom wrote:
The coherent code looks nice and clean. I'm wondering, is it possbile to add a memory region to the coherent area and at the same time make malloc() return memory from that area when the default heap connected to malloc() is empty? As I recall that is the behaviour of linux, when the standard zone is empty it allocates from the DMA able memory zone since it can do both. I would be interested in such an approach for the LEON, where all memory can be used for the CPU but only 256MB of memory can be accessed from the PCI.

this should be possible. One option is to allow a list of heaps instead of single RTEMS_Malloc_Heap. The overhead seems to be acceptable too me. It needs a bit of work and testing, probably more than a couple of hours.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to