Changeset 0df8293e in rtems for cpukit/score/inline


Ignore:
Timestamp:
May 15, 2002, 3:14:58 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c0d4abe6
Parents:
fe36c017
Message:

2002-05-15 Chris Johns <ccj@…>

  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/thread.inl

    rfe36c017 r0df8293e  
    388388}
    389389
     390/*PAGE
     391 *
     392 *  _Thread_Get_libc_reent
     393 *
     394 *  DESCRIPTION:
     395 *
     396 *  This routine returns the C library re-enterant pointer.
     397 */
     398 
     399RTEMS_INLINE_ROUTINE void **_Thread_Get_libc_reent( void )
     400{
     401  return _Thread_libc_reent;
     402}
     403
     404/*PAGE
     405 *
     406 *  _Thread_Set_libc_reent
     407 *
     408 *  DESCRIPTION:
     409 *
     410 *  This routine set the C library re-enterant pointer.
     411 */
     412 
     413RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent (
     414  void **libc_reent
     415)
     416{
     417  _Thread_libc_reent = libc_reent;
     418}
     419
    390420#endif
    391421/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.