sapi: Use rtems_configuration_get_maximum_drivers

This commit is contained in:
Sebastian Huber
2012-11-06 11:34:10 +01:00
parent 75524a5e13
commit c53b330c94
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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