Changeset 9c9b62d8 in rtems for cpukit/sapi


Ignore:
Timestamp:
Jul 17, 2013, 9:44:55 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a7ce0ce
Parents:
f74d9496
git-author:
Sebastian Huber <sebastian.huber@…> (07/17/13 09:44:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/17/13 11:09:49)
Message:

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@…>

  • libc/include/sys/config.h (DYNAMIC_REENT): Define for RTEMS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    rf74d9496 r9c9b62d8  
    6060#else
    6161  #include <bsp.h>
     62#endif
     63
     64#ifdef RTEMS_NEWLIB
     65  #include <sys/reent.h>
    6266#endif
    6367
     
    16511655#endif
    16521656
     1657#if defined(RTEMS_NEWLIB) && defined(__DYNAMIC_REENT__)
     1658  struct _reent *__getreent(void)
     1659  {
     1660    #ifdef CONFIGURE_DISABLE_NEWLIB_REENTRANCY
     1661      return _GLOBAL_REENT;
     1662    #else
     1663      return _Thread_Get_executing()->libc_reent;
     1664    #endif
     1665  }
     1666#endif
    16531667
    16541668#endif
     
    19401954
    19411955#if (defined(RTEMS_NEWLIB) && !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY))
    1942   #include <reent.h>
    1943 
    19441956  #define CONFIGURE_MEMORY_PER_TASK_FOR_NEWLIB \
    19451957    _Configure_From_workspace(sizeof(struct _reent))
Note: See TracChangeset for help on using the changeset viewer.