diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-17 16:54:23 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-17 16:56:17 +0100 |
commit | 77998753b522e28f1b6f92ebab407e1fcaef5296 (patch) | |
tree | aff584f670dd662e85cba95aa96f97f802f52f04 /testsuites/psxtests/psxmsgq02 | |
parent | Add functions for greedy workspace allocation (diff) | |
download | rtems-77998753b522e28f1b6f92ebab407e1fcaef5296.tar.bz2 |
Use alternative API
Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate(). Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
Diffstat (limited to 'testsuites/psxtests/psxmsgq02')
-rw-r--r-- | testsuites/psxtests/psxmsgq02/init.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxmsgq02/init.c b/testsuites/psxtests/psxmsgq02/init.c index a9cb686e38..3899294f46 100644 --- a/testsuites/psxtests/psxmsgq02/init.c +++ b/testsuites/psxtests/psxmsgq02/init.c @@ -17,15 +17,12 @@ #include "system.h" #include <errno.h> #include "tmacros.h" -#include <rtems/score/wkspace.h> -#include <rtems/score/heap.h> #include <mqueue.h> #include <sched.h> #include <fcntl.h> #include <time.h> #include <tmacros.h> #include <signal.h> /* signal facilities */ -#include "test_support.h" pthread_t Init_id; @@ -48,7 +45,7 @@ void *POSIX_Init( Init_id = pthread_self(); printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id ); - Allocate_majority_of_workspace(NAME_MAX); + rtems_workspace_greedy_allocate( 0 ); attr.mq_maxmsg = MAXMSG; attr.mq_msgsize = MSGSIZE; |