diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-11-30 13:06:21 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-11-30 13:06:21 +0000 |
commit | 9224a751b12835d21b11760c32a4a89524bb6b3e (patch) | |
tree | ee87034914f92f7388a421bf4e7a1c3ea40ce5b1 /cpukit/score/include | |
parent | fixed some typos (diff) | |
download | rtems-9224a751b12835d21b11760c32a4a89524bb6b3e.tar.bz2 |
Changed base implementation of protected heap allocations to use _Heap_Allocate_aligned_with_boundary().
Diffstat (limited to 'cpukit/score/include')
-rw-r--r-- | cpukit/score/include/rtems/score/protectedheap.h | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/protectedheap.h b/cpukit/score/include/rtems/score/protectedheap.h index c9d6a62d8d..01c736d6ae 100644 --- a/cpukit/score/include/rtems/score/protectedheap.h +++ b/cpukit/score/include/rtems/score/protectedheap.h @@ -66,19 +66,37 @@ bool _Protected_heap_Extend( /** * @brief See _Heap_Allocate_aligned_with_boundary(). */ -void *_Protected_heap_Allocate( +void *_Protected_heap_Allocate_aligned_with_boundary( Heap_Control *heap, - uintptr_t size + uintptr_t size, + uintptr_t alignment, + uintptr_t boundary ); /** - * @brief See _Heap_Allocate_aligned_with_boundary(). + * @brief See _Heap_Allocate_aligned_with_boundary() with boundary equals zero. */ -void *_Protected_heap_Allocate_aligned( +RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate_aligned( Heap_Control *heap, uintptr_t size, uintptr_t alignment -); +) +{ + return + _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); +} + +/** + * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and + * boundary equals zero. + */ +RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( + Heap_Control *heap, + uintptr_t size +) +{ + return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); +} /** * @brief See _Heap_Size_of_alloc_area(). |