Changeset 96c2db6 in rtems


Ignore:
Timestamp:
Nov 16, 1999, 10:51:47 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
987445b
Parents:
cea3304
Message:

Added code so if dispatching level is specified to be -1, then no
check is performed. This is needed in some timer service routines
since they are called from multiple disable levels.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/support/include/tmacros.h

    rcea3304 r96c2db6  
    4040  do { \
    4141    extern volatile rtems_unsigned32 _Thread_Dispatch_disable_level; \
    42     if ( _Thread_Dispatch_disable_level != (_expect) ) { \
     42    if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \
    4343      printf( "\n_Thread_Dispatch_disable_level is (%d) not %d\n", \
    4444              _Thread_Dispatch_disable_level, (_expect) ); \
  • testsuites/support/include/tmacros.h

    rcea3304 r96c2db6  
    4040  do { \
    4141    extern volatile rtems_unsigned32 _Thread_Dispatch_disable_level; \
    42     if ( _Thread_Dispatch_disable_level != (_expect) ) { \
     42    if ( (_expect) != -1 && _Thread_Dispatch_disable_level != (_expect) ) { \
    4343      printf( "\n_Thread_Dispatch_disable_level is (%d) not %d\n", \
    4444              _Thread_Dispatch_disable_level, (_expect) ); \
Note: See TracChangeset for help on using the changeset viewer.