summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 20:57:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-19 20:57:27 +0000
commite287d946670696183d2224083feb1cff208c737a (patch)
tree2faf0d54942be573a0a1373c7aa3329e9a70d4fb /cpukit/sapi
parent2007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-e287d946670696183d2224083feb1cff208c737a.tar.bz2
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.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/confdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 83a9dd35eb..146dd91ad2 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -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.