[rtems commit] sapi: Error case for CONFIGURE_UNLIMITED_OBJECTS

Sebastian Huber sebh at rtems.org
Thu Apr 17 06:04:19 UTC 2014


Module:    rtems
Branch:    master
Commit:    2c1e7ffbcb25a2bc5859020af5d160313b38b4ca
Changeset: http://git.rtems.org/rtems/commit/?id=2c1e7ffbcb25a2bc5859020af5d160313b38b4ca

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 15 13:32:40 2014 +0200

sapi: Error case for CONFIGURE_UNLIMITED_OBJECTS

---

 cpukit/sapi/include/confdefs.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index c8a9d0e..9c466e5 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1583,6 +1583,12 @@ const rtems_libio_helper rtems_fs_init_helper =
  * classic or posix objects that have not already been given resource limits.
  */
 #if defined(CONFIGURE_UNLIMITED_OBJECTS)
+  #if !defined(CONFIGURE_UNIFIED_WORK_AREAS) && \
+     !defined(CONFIGURE_EXECUTIVE_RAM_SIZE) && \
+     !defined(CONFIGURE_MEMORY_OVERHEAD)
+     #error "CONFIGURE_UNLIMITED_OBJECTS requires a unified work area, an executive RAM size, or a defined workspace memory overhead"
+  #endif
+
   #if !defined(CONFIGURE_UNLIMITED_ALLOCATION_SIZE)
   /**
    * This macro specifies a default allocation size for when auto-extending




More information about the vc mailing list