summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-17 11:44:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-17 13:09:49 +0200
commit9c9b62d8ddc9d61abad5106b819bb3ca9912d572 (patch)
tree1d1fb30e471d55ee053b6d98f31b6dde500bc374 /cpukit/libcsupport
parentscore: Add _Thread_Get_executing() (diff)
downloadrtems-9c9b62d8ddc9d61abad5106b819bb3ca9912d572.tar.bz2
score: Changes due to Newlib __DYNAMIC_REENT__
Delete _Thread_libc_reent and add __getreent() instead according to __DYNAMIC_REENT__ define. For SMP configurations __DYNAMIC_REENT__ must be defined. A Newlib including the following patch is required: 2013-07-09 Sebastian Huber <sebastian.huber@embedded-brains.de> * libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/newlibc_reent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/newlibc_reent.c b/cpukit/libcsupport/src/newlibc_reent.c
index 972248fa67..62b5d6b123 100644
--- a/cpukit/libcsupport/src/newlibc_reent.c
+++ b/cpukit/libcsupport/src/newlibc_reent.c
@@ -36,12 +36,14 @@ bool newlib_create_hook(
struct _reent *ptr;
bool ok;
+#if !defined(__DYNAMIC_REENT__)
if (_Thread_libc_reent == 0)
{
_REENT = _GLOBAL_REENT;
_Thread_Set_libc_reent (&_REENT);
}
+#endif
/* It is OK to allocate from the workspace because these
* hooks run with thread dispatching disabled.