diff options
Diffstat (limited to 'cpukit/score/include')
-rw-r--r-- | cpukit/score/include/rtems/score/heap.h | 18 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/protectedheap.h | 4 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/wkspace.h | 6 |
3 files changed, 15 insertions, 13 deletions
diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index 0587852d78..78c15522fd 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -31,6 +31,8 @@ #ifndef _RTEMS_SCORE_HEAP_H #define _RTEMS_SCORE_HEAP_H +#include <sys/types.h> + /** * @defgroup ScoreHeap Heap Handler * @@ -262,7 +264,7 @@ typedef struct { uint32_t _Heap_Initialize( Heap_Control *the_heap, void *starting_address, - size_t size, + ssize_t size, uint32_t page_size ); @@ -281,7 +283,7 @@ uint32_t _Heap_Initialize( Heap_Extend_status _Heap_Extend( Heap_Control *the_heap, void *starting_address, - size_t size, + ssize_t size, uint32_t *amount_extended ); @@ -296,7 +298,7 @@ Heap_Extend_status _Heap_Extend( */ void *_Heap_Allocate( Heap_Control *the_heap, - size_t size + ssize_t size ); /** @@ -315,7 +317,7 @@ void *_Heap_Allocate( */ void *_Heap_Allocate_aligned( Heap_Control *the_heap, - size_t size, + ssize_t size, uint32_t alignment ); @@ -336,7 +338,7 @@ void *_Heap_Allocate_aligned( bool _Heap_Size_of_user_area( Heap_Control *the_heap, void *starting_address, - size_t *size + ssize_t *size ); /** @@ -364,7 +366,7 @@ bool _Heap_Size_of_user_area( Heap_Resize_status _Heap_Resize_block( Heap_Control *the_heap, void *starting_address, - size_t size, + ssize_t size, uint32_t *old_mem_size, uint32_t *avail_mem_size ); @@ -449,8 +451,8 @@ void _Heap_Get_free_information( * * @return This method returns block size on success, 0 if overflow occured. */ -extern size_t _Heap_Calc_block_size( - size_t size, +extern ssize_t _Heap_Calc_block_size( + ssize_t size, uint32_t page_size, uint32_t min_size ); diff --git a/cpukit/score/include/rtems/score/protectedheap.h b/cpukit/score/include/rtems/score/protectedheap.h index 78c2abc3d2..508e548354 100644 --- a/cpukit/score/include/rtems/score/protectedheap.h +++ b/cpukit/score/include/rtems/score/protectedheap.h @@ -54,7 +54,7 @@ extern "C" { static inline uint32_t _Protected_heap_Initialize( Heap_Control *the_heap, void *starting_address, - size_t size, + ssize_t size, uint32_t page_size ) { @@ -128,7 +128,7 @@ void *_Protected_heap_Allocate_aligned( bool _Protected_heap_Get_block_size( Heap_Control *the_heap, void *starting_address, - size_t *size + ssize_t *size ); /** diff --git a/cpukit/score/include/rtems/score/wkspace.h b/cpukit/score/include/rtems/score/wkspace.h index b4047c56fa..36fa34b420 100644 --- a/cpukit/score/include/rtems/score/wkspace.h +++ b/cpukit/score/include/rtems/score/wkspace.h @@ -52,7 +52,7 @@ SCORE_EXTERN Heap_Control _Workspace_Area; /* executive heap header */ */ void _Workspace_Handler_initialization( void *starting_address, - size_t size + ssize_t size ); /** @brief Allocate Memory from Workspace @@ -66,7 +66,7 @@ void _Workspace_Handler_initialization( * @return a pointer to the requested memory or NULL. */ void *_Workspace_Allocate( - size_t size + ssize_t size ); /** @brief Free Memory to the Workspace @@ -94,7 +94,7 @@ bool _Workspace_Free( * @return If successful, the starting address of the allocated memory */ void *_Workspace_Allocate_or_fatal_error( - size_t size + ssize_t size ); #ifndef __RTEMS_APPLICATION__ |