diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-05-15 15:14:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-05-15 15:14:58 +0000 |
commit | 0df8293e2b26cfd56824c90803d427dcbb49f738 (patch) | |
tree | 3ecc5d39a954200758071dd742b03484518a51a3 /cpukit/score/src/threadinitialize.c | |
parent | 2001-05-15 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-0df8293e2b26cfd56824c90803d427dcbb49f738.tar.bz2 |
2002-05-15 Chris Johns <ccj@acm.org>
* include/rtems/score/thread.h, inline/rtems/score/thread.inl,
src/threaddispatch.c, src/threadinitialize.c:
Move the C library re-enterrant support directly into
the thread dispatch code. RTEMS needs libc and so requiring
libc to use a user extension with its overhead is not the best
solution. This patch lowers the overhead to 2 pointer moves.
Diffstat (limited to 'cpukit/score/src/threadinitialize.c')
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index feb07836e3..e850e3fe1f 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -115,6 +115,12 @@ boolean _Thread_Initialize( #endif /* + * Clear the libc reent hook. + */ + + the_thread->libc_reent = NULL; + + /* * Allocate the extensions area for this thread */ |