Changeset b3ac6a8d in rtems for c/src/exec/libcsupport


Ignore:
Timestamp:
09/12/95 19:45:42 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
3652ad35
Parents:
4b61ebfb
Message:

Initial attempt at building HP PA-RISC using Solaris hosted tools.

Changed back to Newlib for Solaris UNIX simulator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/newlibc.c

    r4b61ebfb rb3ac6a8d  
    120120     * tid of 0, which is treated specially (optimized, actually)
    121121     * by rtems_task_set_note
    122      */
    123 
    124     impure_value = (rtems_unsigned32) _REENT;
    125     MY_task_set_note(current_task, LIBC_NOTEPAD, impure_value);
     122     *
     123     * NOTE:  The above comment is no longer true and we need to use
     124     *        the extension data areas added about the same time.
     125     */
     126
     127    /*
     128     *  Don't touch the outgoing task if it has been deleted.
     129     */
     130
     131    if ( !_States_Is_transient( current_task->current_state ) ) {
     132      impure_value = (rtems_unsigned32) _REENT;
     133      MY_task_set_note(current_task, LIBC_NOTEPAD, impure_value);
     134    }
    126135
    127136    _REENT = (struct _reent *) MY_task_get_note(heir_task, LIBC_NOTEPAD);
     
    172181    }
    173182
    174     if (ptr)
     183    /* if (ptr) */
     184    if (ptr && ptr != &libc_global_reent)
    175185    {
    176186        _wrapup_reent(ptr);
Note: See TracChangeset for help on using the changeset viewer.