summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
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
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')
-rw-r--r--testsuites/sptests/ChangeLog5
-rw-r--r--testsuites/sptests/sp21/task1.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index a01bd2f0a0..190306a8ad 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* spsize/size.c: Move interrupt_stack_size field from CPU Table to
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;