Changeset 0b268b8 in rtems


Ignore:
Timestamp:
Jun 25, 2015, 11:37:40 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bd67d7d2
Parents:
8042107a
git-author:
Sebastian Huber <sebastian.huber@…> (06/25/15 11:37:40)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/25/15 11:55:32)
Message:

score: Move default _ISR_Is_in_progress()

Location:
cpukit/score
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r8042107a r0b268b8  
    343343    src/debugisthreaddispatchingallowed.c \
    344344    src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
     345libscore_a_SOURCES += src/isrisinprogress.c
    345346libscore_a_SOURCES += src/debugisownerofallocator.c
    346347libscore_a_SOURCES += src/profilingisrentryexit.c
  • cpukit/score/include/rtems/score/isr.h

    r8042107a r0b268b8  
    2323
    2424#include <rtems/score/isrlevel.h>
    25 #include <rtems/score/percpu.h>
    2625
    2726/**
     
    137136
    138137/**
    139  * @brief Returns the current ISR nest level
    140  *
    141  * This function can be called in any context.  On SMP configurations
    142  * interrupts are disabled to ensure that the processor index is used
    143  * consistently.
    144  *
    145  * @return The current ISR nest level.
    146  */
    147 RTEMS_INLINE_ROUTINE uint32_t _ISR_Get_nest_level( void )
    148 {
    149   uint32_t isr_nest_level;
    150 
    151   #if defined( RTEMS_SMP )
    152     ISR_Level level;
    153 
    154     _ISR_Disable_without_giant( level );
    155   #endif
    156 
    157   isr_nest_level = _ISR_Nest_level;
    158 
    159   #if defined( RTEMS_SMP )
    160     _ISR_Enable_without_giant( level );
    161   #endif
    162 
    163   return isr_nest_level;
    164 }
    165 
    166 /**
    167138 *  @brief Checks if an ISR in progress.
    168139 *
     
    173144 *  @retval This methods returns true when called from an ISR.
    174145 */
    175 #if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE)
    176   bool _ISR_Is_in_progress( void );
    177 #else
    178   #define _ISR_Is_in_progress() \
    179           (_ISR_Get_nest_level() != 0)
    180 #endif
     146bool _ISR_Is_in_progress( void );
    181147
    182148#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.