diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-07 14:50:37 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-10 12:37:40 +0200 |
commit | 263f4beceae0ec5602cb41e792c25ebe3ec49c97 (patch) | |
tree | 7941a5035b4834597e9cdb855e92b4a9d8b5ac27 /testsuites/sptests/sp21 | |
parent | documentation: Clarify (diff) | |
download | rtems-263f4beceae0ec5602cb41e792c25ebe3ec49c97.tar.bz2 |
score: Statically initialize IO manager
This simplifies the RTEMS initialization and helps to avoid a memory
overhead. The workspace demands of the IO manager were not included in
the <rtems/confdefs.h> workspace size estimate. This is also fixed as a
side-effect.
Update documentation and move "Specifying Application Defined Device
Driver Table" to the section end. This sub-section is not that
important for the user. Mentioning this at the beginning may lead to
confusion.
Diffstat (limited to 'testsuites/sptests/sp21')
-rw-r--r-- | testsuites/sptests/sp21/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuites/sptests/sp21/init.c b/testsuites/sptests/sp21/init.c index 62a48b81ae..0eb453c974 100644 --- a/testsuites/sptests/sp21/init.c +++ b/testsuites/sptests/sp21/init.c @@ -29,8 +29,7 @@ void do_test_zero_driver(void); #define STUB_DRIVER_MAJOR 0x2 #define ZERO_DRIVER_MAJOR 0x3 #define NO_DRIVER_MAJOR 0x4 -#define INVALID_DRIVER_MAJOR \ - (rtems_configuration_get_number_of_device_drivers() + 1) +#define INVALID_DRIVER_MAJOR UINT32_MAX /* driver entries to use with io_register */ rtems_driver_address_table GoodDriver = DEVNULL_DRIVER_TABLE_ENTRY; |