Use alternative API

Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate().  Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
This commit is contained in:
Sebastian Huber
2012-02-17 16:54:23 +01:00
parent 622d6703d3
commit 77998753b5
6 changed files with 5 additions and 70 deletions

View File

@@ -17,10 +17,6 @@
#include "system.h"
#include <errno.h>
#include "tmacros.h"
#include <rtems/score/wkspace.h>
#include <rtems/score/heap.h>
#include "test_support.h"
void Key_destructor(
void *key_data
@@ -46,7 +42,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08" PRIxpthread_t "\n", Init_id );
Allocate_majority_of_workspace(84);
rtems_workspace_greedy_allocate( 0 );
puts("Init: pthread_key_create - ENOMEM (Workspace not available)");
empty_line();