diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-05 16:44:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-05 16:44:02 +0000 |
commit | 458bd343e24cda7169c75f079705979891c9abc1 (patch) | |
tree | a9e584c28211674b28d1e37aec005e0e3a25afa1 /testsuites/sptests/sp09 | |
parent | Eliminated references to stack checker related #defines. (diff) | |
download | rtems-458bd343e24cda7169c75f079705979891c9abc1.tar.bz2 |
This is another pass at making sure that nothing outside the BSP
unnecessarily uses any variables defined by the BSP. On this
sweep, use of BSP_Configuration and Cpu_table was eliminated.
A significant part of this modification was the addition of
macros to access fields in the RTEMS configuration structures.
This is necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves. This started after
comments and analysis by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'testsuites/sptests/sp09')
-rw-r--r-- | testsuites/sptests/sp09/screen03.c | 12 |
1 files changed, 3 insertions, 9 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 |