summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/rtems_heap_greedy.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-07-17 10:19:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-07-17 10:19:16 +0200
commit317ee8d7ffd4bb6c785f7a7d8a84ccd7f873513f (patch)
treef51362b3092abb782995f9c9d59e0252a660d3ac /cpukit/libcsupport/src/rtems_heap_greedy.c
parentFix broken _endtext symbol (diff)
downloadrtems-317ee8d7ffd4bb6c785f7a7d8a84ccd7f873513f.tar.bz2
score: Change greedy allocation API
Diffstat (limited to 'cpukit/libcsupport/src/rtems_heap_greedy.c')
-rw-r--r--cpukit/libcsupport/src/rtems_heap_greedy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/rtems_heap_greedy.c b/cpukit/libcsupport/src/rtems_heap_greedy.c
index d363fe4d3b..7e5dc16e7e 100644
--- a/cpukit/libcsupport/src/rtems_heap_greedy.c
+++ b/cpukit/libcsupport/src/rtems_heap_greedy.c
@@ -18,12 +18,15 @@
#include "malloc_p.h"
-void *rtems_heap_greedy_allocate( size_t remaining_free_space )
+void *rtems_heap_greedy_allocate(
+ const uintptr_t *block_sizes,
+ size_t block_count
+)
{
void *opaque;
_RTEMS_Lock_allocator();
- opaque = _Heap_Greedy_allocate( RTEMS_Malloc_Heap, remaining_free_space );
+ opaque = _Heap_Greedy_allocate( RTEMS_Malloc_Heap, block_sizes, block_count );
_RTEMS_Unlock_allocator();
return opaque;