From 0df8293e2b26cfd56824c90803d427dcbb49f738 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 15 May 2002 15:14:58 +0000 Subject: 2002-05-15 Chris Johns * 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. --- c/src/exec/score/src/threadinitialize.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'c/src/exec/score/src/threadinitialize.c') diff --git a/c/src/exec/score/src/threadinitialize.c b/c/src/exec/score/src/threadinitialize.c index feb07836e3..e850e3fe1f 100644 --- a/c/src/exec/score/src/threadinitialize.c +++ b/c/src/exec/score/src/threadinitialize.c @@ -114,6 +114,12 @@ boolean _Thread_Initialize( the_thread->Start.fp_context = fp_area; #endif + /* + * Clear the libc reent hook. + */ + + the_thread->libc_reent = NULL; + /* * Allocate the extensions area for this thread */ -- cgit v1.2.3