mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 01:58:44 +08:00
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* sapi/include/confdefs.h: Catch the error when the user lowers the maximum number of drivers below the number of statically configured ones.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* sapi/include/confdefs.h: Catch the error when the user lowers the
|
||||
maximum number of drivers below the number of statically configured
|
||||
ones.
|
||||
|
||||
2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* sapi/src/extension.c, sapi/src/extensioncreate.c,
|
||||
|
||||
@@ -407,6 +407,9 @@ rtems_driver_address_table Device_drivers[] = {
|
||||
#define CONFIGURE_MAXIMUM_DRIVERS CONFIGURE_NUMBER_OF_DRIVERS
|
||||
#endif
|
||||
|
||||
#if (CONFIGURE_MAXIMUM_DRIVERS < CONFIGURE_NUMBER_OF_DRIVERS)
|
||||
#error "not enough slots for static drivers"
|
||||
#endif
|
||||
/*
|
||||
* Default the number of devices per device driver. This value may be
|
||||
* overridden by the user.
|
||||
|
||||
Reference in New Issue
Block a user