diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-09 14:29:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-09 14:29:33 +0000 |
commit | 38cc1e1b214a5daf599ef4fd61908b40cdf1d84a (patch) | |
tree | 874320d7ea74ebbd8890e02ef8d6f560c88d79e5 /testsuites/psxtests/psximfs01 | |
parent | 2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-38cc1e1b214a5daf599ef4fd61908b40cdf1d84a.tar.bz2 |
2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
* psxchroot01/test.c, psximfs01/init.c, psximfs02/init.c,
psxpipe01/init.c: Eliminate most references to RTEMS_Malloc_Heap.
Diffstat (limited to 'testsuites/psxtests/psximfs01')
-rw-r--r-- | testsuites/psxtests/psximfs01/init.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/psxtests/psximfs01/init.c b/testsuites/psxtests/psximfs01/init.c index 8ca65bb0c7..cafac02701 100644 --- a/testsuites/psxtests/psximfs01/init.c +++ b/testsuites/psxtests/psximfs01/init.c @@ -17,6 +17,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <errno.h> +#include <rtems/libcsupport.h> int TestFd; uint8_t Buffer[256]; @@ -207,15 +208,12 @@ void unlink_it(void) rtems_test_assert( rc == 0 ); } -extern Heap_Control *RTEMS_Malloc_Heap; - rtems_task Init( rtems_task_argument argument ) { int i; void *alloc_ptr = (void *)0; - Heap_Information_block Info; int position = 0; int status = 0; @@ -240,8 +238,7 @@ rtems_task Init( /* * Allocate the heap, so that extend cannot be successful */ - _Heap_Get_information( RTEMS_Malloc_Heap, &Info ); - alloc_ptr = malloc( Info.Free.largest-4 ); + alloc_ptr = malloc( malloc_free_space() - 4 ); extend_helper(); |