[PATCH] confdefs: update the CONFIGURE_MEMORY_FOR_POSIX_KEYS for rbtree version.
Gedare Bloom
gedare at rtems.org
Tue Mar 5 22:12:51 UTC 2013
---
cpukit/sapi/include/confdefs.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index cc55e92..fcfdb44 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1713,7 +1713,12 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
#else
#define CONFIGURE_MEMORY_FOR_POSIX_KEYS(_keys) \
(_Configure_Object_RAM(_keys, sizeof(POSIX_Keys_Control) ) \
- + (_keys) * 3 * _Configure_From_workspace(sizeof(void *) * 2))
+ + _Configure_From_workspace( \
+ _Configure_Max_Objects(CONFIGURE_MAXIMUM_POSIX_THREADS) \
+ * _Configure_Max_Objects(_keys) \
+ * sizeof(POSIX_Keys_Rbtree_node) \
+ ) \
+ )
#endif
#ifndef CONFIGURE_MAXIMUM_POSIX_TIMERS
--
1.7.1
More information about the devel
mailing list