From 1383eca6d20070bdb34fac8461a810dc2e08e211 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Dec 2007 15:51:54 +0000 Subject: [PATCH] 2007-12-11 Joel Sherrill * sp21/task1.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields. --- testsuites/sptests/ChangeLog | 5 +++++ testsuites/sptests/sp21/task1.c | 4 ++-- 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 + + * sp21/task1.c: Eliminate copies of the Configuration Table. Use the + RTEMS provided accessor macros to obtain configuration fields. + 2007-12-04 Joel Sherrill * 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;