Changeset b2e1bded in rtems


Ignore:
Timestamp:
Jul 18, 2017, 12:53:16 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a400d06f
Parents:
671efc50
git-author:
Sebastian Huber <sebastian.huber@…> (07/18/17 12:53:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/25/17 09:41:10)
Message:

score: Add optional _CPU_Context_Destroy()

Update #3077.

Location:
cpukit/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/no_cpu/rtems/score/cpu.h

    r671efc50 rb2e1bded  
    817817
    818818/**
     819 * @ingroup CPUContext
     820 *
     821 * @brief Destroys the context of the thread.
     822 *
     823 * It must be implemented as a macro and an implementation is optional.  The
     824 * default implementation does nothing.
     825 *
     826 * @param[in] _the_thread The corresponding thread.
     827 * @param[in] _the_context The context to destroy.
     828 *
     829 * Port Specific Information:
     830 *
     831 * XXX document implementation including references if appropriate
     832 */
     833#define _CPU_Context_Destroy( _the_thread, _the_context ) \
     834  { \
     835  }
     836
     837/**
    819838 *  @ingroup CPUContext
    820839 *
  • cpukit/score/include/rtems/score/context.h

    r671efc50 rb2e1bded  
    147147   _CPU_Context_save_fp( _fp )
    148148
     149#if defined(_CPU_Context_Destroy)
     150  #define _Context_Destroy( _the_thread, _the_context ) \
     151    _CPU_Context_Destroy( _the_thread, _the_context )
     152#else
     153  #define _Context_Destroy( _the_thread, _the_context )
     154#endif
     155
    149156#ifdef __cplusplus
    150157}
  • cpukit/score/src/threadrestart.c

    r671efc50 rb2e1bded  
    206206
    207207  _Thread_queue_Destroy( &the_thread->Join_queue );
    208 
     208  _Context_Destroy( the_thread, &the_thread->Registers );
    209209  _Objects_Free( &information->Objects, &the_thread->Object );
    210210}
Note: See TracChangeset for help on using the changeset viewer.