summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp21
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:51:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:51:54 +0000
commit1383eca6d20070bdb34fac8461a810dc2e08e211 (patch)
treeaa209967cdc99ebef4c9e24d1035dbc27d7fdd19 /testsuites/sptests/sp21
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-1383eca6d20070bdb34fac8461a810dc2e08e211.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp21/task1.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Diffstat (limited to 'testsuites/sptests/sp21')
-rw-r--r--testsuites/sptests/sp21/task1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/sptests/sp21/task1.c b/testsuites/sptests/sp21/task1.c
index f2b7bf6f45..708bae808e 100644
--- a/testsuites/sptests/sp21/task1.c
+++ b/testsuites/sptests/sp21/task1.c
@@ -21,8 +21,8 @@
#define STUB_DRIVER_MAJOR 0x2
#define NO_DRIVER_MAJOR 0x3
-#define INVALID_DRIVER_MAJOR (Configuration.number_of_device_drivers + 1)
-/* #define INVALID_DRIVER_MAJOR 0xffffffff */
+#define INVALID_DRIVER_MAJOR \
+ (rtems_configuration_get_number_of_device_drivers() + 1)
/* driver entries to use with io_register */
rtems_driver_address_table GoodDriver = DEVNULL_DRIVER_TABLE_ENTRY;