From 4c09f4b3fefc7ba5c5868a97ad00c1ee14a06677 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 2 Oct 2008 20:56:55 +0000 Subject: 2008-10-02 Joel Sherrill * libcsupport/src/malloc_statistics_helpers.c, libcsupport/src/realloc.c, rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/support.h, rtems/src/regiongetsegmentsize.c, rtems/src/regionresizesegment.c, rtems/src/workspace.c, sapi/include/confdefs.h, score/include/rtems/score/heap.h, score/include/rtems/score/protectedheap.h, score/include/rtems/score/wkspace.h, score/src/heap.c, score/src/heapallocate.c, score/src/heapallocatealigned.c, score/src/heapextend.c, score/src/heapresizeblock.c, score/src/heapsizeofuserarea.c, score/src/pheapgetblocksize.c, score/src/wkspace.c: Change size_t to ssize_t on all Heap, Workspace and Region calls. On 16-bit architectures, size_t can be 16-bits which would limit sizes to 64K. --- cpukit/score/include/rtems/score/wkspace.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/include/rtems/score/wkspace.h') 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__ -- cgit v1.2.3