diff options
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/sp09/screen03.c | 12 | ||||
-rw-r--r-- | testsuites/sptests/sp13/task1.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/spfatal/fatal.c | 5 | ||||
-rw-r--r-- | testsuites/sptests/spfatal/system.h | 2 |
4 files changed, 6 insertions, 15 deletions
diff --git a/testsuites/sptests/sp09/screen03.c b/testsuites/sptests/sp09/screen03.c index fb99c5c16f..040ba7e3eb 100644 --- a/testsuites/sptests/sp09/screen03.c +++ b/testsuites/sptests/sp09/screen03.c @@ -19,9 +19,6 @@ #include "system.h" -extern rtems_configuration_table BSP_Configuration; -extern rtems_cpu_table _CPU_Table; - void Screen3() { rtems_name task_name; @@ -48,16 +45,13 @@ void Screen3() * skip the test that tries to allocate a stack that is too big. */ - if (_CPU_Table.stack_allocate_hook) - { + if (rtems_cpu_configuration_get_stack_allocate_hook()) { puts( "TA1 - rtems_task_create - stack size - RTEMS_UNSATISFIED -- SKIPPED" ); - } - else - { + } else { status = rtems_task_create( task_name, 1, - BSP_Configuration.work_space_size, + rtems_configuration_get_work_space_size(), RTEMS_DEFAULT_MODES, RTEMS_DEFAULT_ATTRIBUTES, &Junk_id diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c index 3ac0c398eb..77e575e21a 100644 --- a/testsuites/sptests/sp13/task1.c +++ b/testsuites/sptests/sp13/task1.c @@ -21,8 +21,6 @@ #include "system.h" #include <string.h> /* for memcmp */ -extern rtems_configuration_table BSP_Configuration; - char big_send_buffer[2048]; char big_receive_buffer[2048]; diff --git a/testsuites/sptests/spfatal/fatal.c b/testsuites/sptests/spfatal/fatal.c index aef4a159de..c89105a826 100644 --- a/testsuites/sptests/spfatal/fatal.c +++ b/testsuites/sptests/spfatal/fatal.c @@ -103,7 +103,7 @@ void Process_case() { switch ( Case_in_switch ) { case FATAL_WORKSPACE_OF_ZERO: - New_Configuration = BSP_Configuration; + New_Configuration = rtems_configuration_get_table(); New_Configuration.work_space_start = NULL; Case_in_switch = FATAL_NULL_WORKSPACE; break; @@ -131,6 +131,7 @@ void Process_case() Initialization_tasks[ 0 ].entry_point = Init; break; } - rtems_initialize_executive( &New_Configuration, &Cpu_table ); + rtems_initialize_executive( + &New_Configuration, rtems_cpu_configuration_get_table() ); } diff --git a/testsuites/sptests/spfatal/system.h b/testsuites/sptests/spfatal/system.h index f2391c2a94..113beffd29 100644 --- a/testsuites/sptests/spfatal/system.h +++ b/testsuites/sptests/spfatal/system.h @@ -73,7 +73,5 @@ TEST_EXTERN rtems_name Task_name[ 4 ]; /* array of task names */ TEST_EXTERN rtems_configuration_table New_Configuration; extern rtems_extensions_table Extensions; -extern rtems_configuration_table BSP_Configuration; -extern rtems_cpu_table Cpu_table; /* end of include file */ |