diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:51:54 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:51:54 +0000 |
commit | 1383eca6d20070bdb34fac8461a810dc2e08e211 (patch) | |
tree | aa209967cdc99ebef4c9e24d1035dbc27d7fdd19 /testsuites/sptests | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-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/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <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; |