Changeset 89ee0b6 in rtems for cpukit/score/inline


Ignore:
Timestamp:
Nov 28, 2001, 6:28:24 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b6084844
Parents:
f5e7b4c3
Message:

2001-11-28 Joel Sherrill <joel@…>,

This was tracked as PR91.

  • include/rtems/score/isr.h, inline/rtems/score/isr.inl, macros/rtems/score/isr.inl: Modified to allow any port to provide its own implementation of the macro _ISR_Is_in_progress. If the port overrides this macro, it must provide a non-inlined function implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/isr.inl

    rf5e7b4c3 r89ee0b6  
    1616#ifndef __ISR_inl
    1717#define __ISR_inl
    18 
    19 /*PAGE
    20  *
    21  *  _ISR_Is_in_progress
    22  *
    23  *  DESCRIPTION:
    24  *
    25  *  This function returns TRUE if the processor is currently servicing
    26  *  and interrupt and FALSE otherwise.   A return value of TRUE indicates
    27  *  that the caller is an interrupt service routine, NOT a thread.  The
    28  *  directives available to an interrupt service routine are restricted.
    29  */
    30 
    31 #if defined(powerpc)
    32 #define CPU_PROVIDES_ISR_IS_IN_PROGRESS
    33 #endif
    34 
    35 #ifndef CPU_PROVIDES_ISR_IS_IN_PROGRESS
    36 
    37 RTEMS_INLINE_ROUTINE boolean _ISR_Is_in_progress( void )
    38 {
    39   return (_ISR_Nest_level != 0);
    40 }
    41 #else
    42 #include <rtems/score/c_isr.inl>
    43 #endif
    4418
    4519/*PAGE
Note: See TracChangeset for help on using the changeset viewer.