Changeset b7f6260 in rtems


Ignore:
Timestamp:
Oct 2, 2003, 12:41:04 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
fdcb86b5
Parents:
328acbe8
Message:

2003-10-02 Phil Torre <ptorre@…>

PR 504/rtems

  • include/rtems/score/coremutex.h: Add fatal error check for a task blocking on a mutex when thread dispatching is disabled.
Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/ChangeLog

    r328acbe8 rb7f6260  
     12003-10-02      Phil Torre <ptorre@zetron.com>
     2
     3        PR 504/rtems
     4        * include/rtems/score/coremutex.h: Add fatal error check for a task
     5        blocking on a mutex when thread dispatching is disabled.
     6
    172003-09-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/score/include/rtems/score/coremutex.h

    r328acbe8 rb7f6260  
    2727#include <rtems/score/priority.h>
    2828#include <rtems/score/watchdog.h>
     29#include <rtems/score/interr.h>
     30#include <rtems/score/sysstate.h>
    2931 
    3032/*
     
    153155 */
    154156
     157
    155158#ifndef __RTEMS_APPLICATION__
    156159RTEMS_INLINE_ROUTINE int _CORE_mutex_Seize_interrupt_trylock(
     
    167170  _the_mutex, _id, _wait, _timeout, _level ) \
    168171  do { \
     172        if ( _Thread_Dispatch_disable_level \
     173                && (_wait) \
     174                && (_System_state_Get() >= SYSTEM_STATE_BEGIN_MULTITASKING ) \
     175           ) { \
     176                _Internal_error_Occurred( \
     177                                                        INTERNAL_ERROR_CORE, \
     178                                                        FALSE, \
     179                                                        18 /* called from wrong environment */); \
     180        } \
    169181    if ( _CORE_mutex_Seize_interrupt_trylock( _the_mutex, &_level ) ) {  \
    170182      if ( !_wait ) { \
Note: See TracChangeset for help on using the changeset viewer.