diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 20:57:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 20:57:28 +0000 |
commit | 82478ffc7db2e3f07ee89b91e40647bb679912cd (patch) | |
tree | e7590fa0a880ab69cd97e8baef47a46fc3954f85 /testsuites/sptests/sp25 | |
parent | 4c09f4b3fefc7ba5c5868a97ad00c1ee14a06677 (diff) |
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen01.c, sp09/screen12.c, sp25/system.h, sp25/task1.c,
sp28/init.c, sp39/init.c, sp41/init.c, spfatal01/testcase.h,
spfatal08/testcase.h: 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. Also address constants which
overflowed on 16-bit integer targets.
Diffstat (limited to 'testsuites/sptests/sp25')
-rw-r--r-- | testsuites/sptests/sp25/system.h | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp25/task1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/sptests/sp25/system.h b/testsuites/sptests/sp25/system.h index 49d906b094..453168c3c7 100644 --- a/testsuites/sptests/sp25/system.h +++ b/testsuites/sptests/sp25/system.h @@ -44,7 +44,7 @@ TEST_EXTERN rtems_name Task_name[ 6 ]; /* array of task names */ TEST_EXTERN rtems_id Region_id[ 2 ]; /* array of region ids */ TEST_EXTERN rtems_name Region_name[ 2 ]; /* array of region names */ -TEST_EXTERN uint8_t Area_1[64000] CPU_STRUCTURE_ALIGNMENT; +TEST_EXTERN uint8_t Area_1[1024] CPU_STRUCTURE_ALIGNMENT; #define BASE_PRIORITY 140 diff --git a/testsuites/sptests/sp25/task1.c b/testsuites/sptests/sp25/task1.c index 86e9dcead0..accbb21a9b 100644 --- a/testsuites/sptests/sp25/task1.c +++ b/testsuites/sptests/sp25/task1.c @@ -33,7 +33,7 @@ rtems_task Task_1( void *address_8; rtems_id region_id; Heap_Information_block region_info; - size_t segment_size; + ssize_t segment_size; rtems_status_code status; /* Obtain the region id */ |