summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/pheapallocate.c
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-11-30 13:06:21 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-11-30 13:06:21 +0000
commit9224a751b12835d21b11760c32a4a89524bb6b3e (patch)
treeee87034914f92f7388a421bf4e7a1c3ea40ce5b1 /cpukit/score/src/pheapallocate.c
parentfixed some typos (diff)
downloadrtems-9224a751b12835d21b11760c32a4a89524bb6b3e.tar.bz2
Changed base implementation of protected heap allocations to use _Heap_Allocate_aligned_with_boundary().
Diffstat (limited to 'cpukit/score/src/pheapallocate.c')
-rw-r--r--cpukit/score/src/pheapallocate.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/cpukit/score/src/pheapallocate.c b/cpukit/score/src/pheapallocate.c
index 50d560f3a7..b4888dc8ea 100644
--- a/cpukit/score/src/pheapallocate.c
+++ b/cpukit/score/src/pheapallocate.c
@@ -24,16 +24,23 @@
#include <rtems/system.h>
#include <rtems/score/protectedheap.h>
-void *_Protected_heap_Allocate(
- Heap_Control *the_heap,
- uintptr_t size
+void *_Protected_heap_Allocate_aligned_with_boundary(
+ Heap_Control *heap,
+ uintptr_t size,
+ uintptr_t alignment,
+ uintptr_t boundary
)
{
void *p;
_RTEMS_Lock_allocator();
- p = _Heap_Allocate( the_heap, size );
+ p = _Heap_Allocate_aligned_with_boundary(
+ heap,
+ size,
+ alignment,
+ boundary
+ );
_RTEMS_Unlock_allocator();
+
return p;
}
-