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 /cpukit/libmisc | |
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 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/monitor/mon-driver.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/libmisc/monitor/mon-driver.c b/cpukit/libmisc/monitor/mon-driver.c index 70073c67a6..8abe281d56 100644 --- a/cpukit/libmisc/monitor/mon-driver.c +++ b/cpukit/libmisc/monitor/mon-driver.c @@ -63,10 +63,9 @@ rtems_monitor_driver_next( rtems_id *next_id ) { - const rtems_configuration_table *c = &Configuration; uint32_t n = rtems_object_id_get_index(*next_id); - if (n >= c->number_of_device_drivers) + if (n >= _IO_Number_of_drivers) goto failed; _Thread_Disable_dispatch(); @@ -79,7 +78,7 @@ rtems_monitor_driver_next( canonical_driver->name = rtems_build_name('-', '-', '-', '-'); *next_id += 1; - return (const void *) (c->Device_driver_table + n); + return (const void *) (&_IO_Driver_address_table[n]); failed: *next_id = RTEMS_OBJECT_ID_FINAL; |