diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-09 14:29:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-09 14:29:36 +0000 |
commit | 8d9c8247e5ec975cd6f0b1abeddf2a08496989ff (patch) | |
tree | 6e75d82b909a86c45158734c9219ce278c1d7ea3 /testsuites/sptests/spfifo02/init.c | |
parent | 2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8d9c8247e5ec975cd6f0b1abeddf2a08496989ff.tar.bz2 |
2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
* spfifo02/init.c, spmountmgr01/init.c, spprivenv01/init.c: Eliminate
most references to RTEMS_Malloc_Heap.
Diffstat (limited to 'testsuites/sptests/spfifo02/init.c')
-rw-r--r-- | testsuites/sptests/spfifo02/init.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/testsuites/sptests/spfifo02/init.c b/testsuites/sptests/spfifo02/init.c index d564e13138..dab28a05fa 100644 --- a/testsuites/sptests/spfifo02/init.c +++ b/testsuites/sptests/spfifo02/init.c @@ -17,7 +17,7 @@ #include <fcntl.h> #include <unistd.h> #include <errno.h> -#include <rtems/score/heap.h> +#include <rtems/libcsupport.h> #define MAXIMUM 10 #define NUM_OPEN_REQ 26 @@ -28,8 +28,6 @@ int BarrierCount; rtems_id Semaphores[MAXIMUM]; int SemaphoreCount; -extern Heap_Control *RTEMS_Malloc_Heap; - void create_all_barriers(void) { rtems_status_code status; @@ -132,7 +130,6 @@ rtems_task Init( void *alloc_ptr = (void *)0; int num_opens = 0; int index = 0; - Heap_Information_block Info; puts( "\n\n*** TEST FIFO 08 ***" ); @@ -154,8 +151,7 @@ rtems_task Init( delete_semaphore(); - _Heap_Get_information(RTEMS_Malloc_Heap, &Info); - alloc_ptr = malloc(Info.Free.largest-4); + alloc_ptr = malloc( malloc_free_space() - 4 ); puts("Opening FIFO.. expect ENOMEM since no memory is available"); open_fifo(ENOMEM, O_RDWR); |