From 9c9b62d8ddc9d61abad5106b819bb3ca9912d572 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 17 Jul 2013 11:44:55 +0200 Subject: 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 * libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS. --- cpukit/score/src/threaddispatch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/score/src/threaddispatch.c') diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index 4cd449d55b..adce3a18d3 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -143,6 +143,7 @@ void _Thread_Dispatch( void ) } #endif +#if !defined(__DYNAMIC_REENT__) /* * Switch libc's task specific data. */ @@ -150,6 +151,7 @@ void _Thread_Dispatch( void ) executing->libc_reent = *_Thread_libc_reent; *_Thread_libc_reent = heir->libc_reent; } +#endif _User_extensions_Thread_switch( executing, heir ); -- cgit v1.2.3