forked from Imagelibrary/rtems
sapi: Use rtems_configuration_get_maximum_drivers
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user