[PATCH] Define __DYNAMIC_REENT__ for RTEMS

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 8 09:16:07 UTC 2013


This helps to get rid of the global _Thread_libc_reent pointer in RTEMS
which is unsuitable for SMP configurations.  It simplifies also
thread dispatching in RTEMS.

newlib/ChangeLog
2013-07-08  Sebastian Huber <sebastian.huber at embedded-brains.de>

	* libc/include/sys/config.h (__DYNAMIC_REENT__): Define for
	RTEMS.
---
 newlib/libc/include/sys/config.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index a641c4b..c726e14 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -232,6 +232,7 @@
 #if defined(__rtems__)
 #define __FILENAME_MAX__ 255
 #define _READ_WRITE_RETURN_TYPE _ssize_t
+#define __DYNAMIC_REENT__
 #define _REENT_GLOBAL_ATEXIT
 #endif
 
-- 
1.7.7




More information about the devel mailing list