[PATCH 04/23] sapi: Use rtems_configuration_get_maximum_drivers
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Nov 6 12:56:26 UTC 2012
---
cpukit/sapi/include/rtems/config.h | 3 +++
cpukit/sapi/src/io.c | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index d0e181c..494effc 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -320,6 +320,9 @@ extern rtems_configuration_table Configuration;
#define rtems_configuration_get_do_zero_of_workspace() \
(Configuration.do_zero_of_workspace)
+#define rtems_configuration_get_maximum_drivers() \
+ (Configuration.maximum_drivers)
+
#define rtems_configuration_get_number_of_device_drivers() \
(Configuration.number_of_device_drivers)
diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c
index 1bcb045..679bae5 100644
--- a/cpukit/sapi/src/io.c
+++ b/cpukit/sapi/src/io.c
@@ -40,7 +40,7 @@ void _IO_Manager_initialization(void)
driver_table = Configuration.Device_driver_table;
drivers_in_table = Configuration.number_of_device_drivers;
- number_of_drivers = Configuration.maximum_drivers;
+ number_of_drivers = rtems_configuration_get_maximum_drivers();
/*
* If the user claims there are less drivers than are actually in
--
1.7.7
More information about the devel
mailing list