[PATCH] sapi: Error case for CONFIGURE_UNLIMITED_OBJECTS
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Apr 15 11:33:21 UTC 2014
---
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..8b9b3e1 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 "Using CONFIGURE_UNLIMITED_OBJECTS with a pre-calculated work space size makes no sense"
+ #endif
+
#if !defined(CONFIGURE_UNLIMITED_ALLOCATION_SIZE)
/**
* This macro specifies a default allocation size for when auto-extending
--
1.7.7
More information about the devel
mailing list