Re: [PATCH 1/2] rtems: Add rtems_cache_coherent_allocate()

2014-12-01 Thread Sebastian Huber
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

Re: [PATCH 1/2] rtems: Add rtems_cache_coherent_allocate()

2014-12-01 Thread Daniel Hellstrom
Hello Sebastian, 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, whe

[PATCH 1/2] rtems: Add rtems_cache_coherent_allocate()

2014-11-25 Thread Sebastian Huber
Add rtems_cache_coherent_free() and rtems_cache_coherent_add_area(). --- cpukit/libcsupport/Makefile.am | 1 + cpukit/libcsupport/src/cachecoherentalloc.c | 122 cpukit/rtems/include/rtems/rtems/cache.h| 61 ++ testsuites/sptests/spcache