summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/isr.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2007-11-08 03:03:11 +0000
committerTill Straumann <strauman@slac.stanford.edu>2007-11-08 03:03:11 +0000
commit42bb3a028f307f24103e65e6c462645d4cc87f50 (patch)
tree10d9dfd526e3bd642c7415c871a5620a810f71af /cpukit/score/include/rtems/score/isr.h
parent2007-11-07 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-42bb3a028f307f24103e65e6c462645d4cc87f50.tar.bz2
2007-11-07 Till Straumann <strauman@slac.stanford.edu>
* score/include/rtems/score/isr.h: added RTEMS_COMPILER_MEMORY_BARRIER around _CPU_ISR_Set_level().
Diffstat (limited to 'cpukit/score/include/rtems/score/isr.h')
-rw-r--r--cpukit/score/include/rtems/score/isr.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/isr.h b/cpukit/score/include/rtems/score/isr.h
index 1359e91fd8..362ef05489 100644
--- a/cpukit/score/include/rtems/score/isr.h
+++ b/cpukit/score/include/rtems/score/isr.h
@@ -159,7 +159,12 @@ void _ISR_Handler_initialization ( void );
* routine exits.
*/
#define _ISR_Set_level( _new_level ) \
- _CPU_ISR_Set_level( _new_level )
+ do { \
+ RTEMS_COMPILER_MEMORY_BARRIER(); \
+ _CPU_ISR_Set_level( _new_level ); \
+ RTEMS_COMPILER_MEMORY_BARRIER(); \
+ } while (0)
+
/**
* This routine is the interrupt dispatcher. ALL interrupts