diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-20 20:01:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-20 20:01:13 +0000 |
commit | 7ff6115b8b913d848b8fe76daf72ca0b4bbf2548 (patch) | |
tree | 35545452de162753f8c608a400f2b0bd97d42807 /cpukit/score/src/wkspace.c | |
parent | 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-7ff6115b8b913d848b8fe76daf72ca0b4bbf2548.tar.bz2 |
2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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: Revert use of ssize_t. This type is not
guaranteed to be able to represent a positive number greater than the
size of a single allocatable object. We needed a type that is able to
represent the size of a pool of multiple allocatable objects or
potentially nearly all memory.
Diffstat (limited to 'cpukit/score/src/wkspace.c')
-rw-r--r-- | cpukit/score/src/wkspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/wkspace.c b/cpukit/score/src/wkspace.c index 591427cb64..ebb71f3297 100644 --- a/cpukit/score/src/wkspace.c +++ b/cpukit/score/src/wkspace.c @@ -27,7 +27,7 @@ */ void _Workspace_Handler_initialization( void *starting_address, - ssize_t size + size_t size ) { uint32_t memory_available; @@ -61,7 +61,7 @@ void _Workspace_Handler_initialization( * _Workspace_Allocate */ void *_Workspace_Allocate( - ssize_t size + size_t size ) { return _Heap_Allocate( &_Workspace_Area, size ); @@ -81,7 +81,7 @@ bool _Workspace_Free( * _Workspace_Allocate_or_fatal_error */ void *_Workspace_Allocate_or_fatal_error( - ssize_t size + size_t size ) { void *memory; |