Changeset 81f5957 in rtems


Ignore:
Timestamp:
Jan 25, 2008, 8:14:45 PM (12 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.9, master
Children:
def9eef
Parents:
41a7fef
Message:

2008-01-25 Jennifer Averett <jennifer.averett@…>

  • sapi/include/rtems/fatal.h, score/include/rtems/score/coremutex.h, score/include/rtems/score/interr.h, score/inline/rtems/score/thread.inl, score/src/coremutexseize.c: Modifications to aid in full path testing.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r41a7fef r81f5957  
     12008-01-25      Jennifer Averett <jennifer.averett@OARcorp.com>
     2
     3        * sapi/include/rtems/fatal.h, score/include/rtems/score/coremutex.h,
     4        score/include/rtems/score/interr.h,
     5        score/inline/rtems/score/thread.inl, score/src/coremutexseize.c:
     6        Modifications to aid in full path testing.
     7
    182008-01-25      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • cpukit/sapi/include/rtems/fatal.h

    r41a7fef r81f5957  
    4242void rtems_fatal_error_occurred(
    4343  uint32_t   the_error
    44 );
     44) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
    4545
    4646#ifdef __cplusplus
  • cpukit/score/include/rtems/score/coremutex.h

    r41a7fef r81f5957  
    355355 *      then they are blocked.
    356356 */
    357 #define _CORE_mutex_Seize( \
     357
     358#define _CORE_mutex_Seize_body( \
    358359  _the_mutex, _id, _wait, _timeout, _level ) \
    359360  do { \
     
    365366           INTERNAL_ERROR_CORE, \
    366367           FALSE, \
    367            18 /* called from wrong environment */); \
     368           INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE \
     369           ); \
    368370    } \
    369371    if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &_level ) ) {  \
     
    383385  } while (0)
    384386
     387#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
     388  void _CORE_mutex_Seize(
     389    CORE_mutex_Control  *_the_mutex,
     390    Objects_Id           _id,
     391    boolean              _wait,
     392    Watchdog_Interval    _timeout,
     393    ISR_Level            _level
     394  );
     395#else
     396  #define _CORE_mutex_Seize( _the_mutex, _id, _wait, _timeout, _level ) \
     397     _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level )
     398#endif
    385399/**
    386400 *  @brief Surrender the Mutex
  • cpukit/score/include/rtems/score/interr.h

    r41a7fef r81f5957  
    6565  INTERNAL_ERROR_BAD_ATTRIBUTES,
    6666  INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY,
    67   INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL
     67  INTERNAL_ERROR_IMPLEMENTATION_BLOCKING_OPERATION_CANCEL,
     68  INTERNAL_ERROR_MUTEX_OBTAIN_FROM_BAD_STATE
    6869} Internal_errors_Core_list;
    6970
  • cpukit/score/inline/rtems/score/thread.inl

    r41a7fef r81f5957  
    2020#define _RTEMS_SCORE_THREAD_INL
    2121
     22#include <rtems/score/sysstate.h>
     23
    2224/**
    2325 *  @addtogroup ScoreThread
     
    3335RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void )
    3436{
    35   _Context_Switch( &_Thread_Executing->Registers, &_Thread_BSP_context );
     37  Context_Control context_area;
     38  Context_Control *context_p = &context_area;
     39
     40  if ( _System_state_Is_up(_System_state_Get ()) )
     41    context_p = &_Thread_Executing->Registers;
     42
     43  _Context_Switch( context_p, &_Thread_BSP_context );
    3644}
    3745
  • cpukit/score/src/coremutexseize.c

    r41a7fef r81f5957  
    2727#include <rtems/score/thread.h>
    2828#include <rtems/score/threadq.h>
     29
     30#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
     31void _CORE_mutex_Seize(
     32  CORE_mutex_Control  *_the_mutex,
     33  Objects_Id           _id,
     34  boolean              _wait,
     35  Watchdog_Interval    _timeout,
     36  ISR_Level            _level
     37)
     38{
     39  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
     40}
     41#endif
    2942
    3043/*PAGE
Note: See TracChangeset for help on using the changeset viewer.