From 42bb3a028f307f24103e65e6c462645d4cc87f50 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Thu, 8 Nov 2007 03:03:11 +0000 Subject: [PATCH] 2007-11-07 Till Straumann * score/include/rtems/score/isr.h: added RTEMS_COMPILER_MEMORY_BARRIER around _CPU_ISR_Set_level(). --- cpukit/ChangeLog | 5 +++++ cpukit/score/include/rtems/score/isr.h | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 67caebae32..c59da97b73 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2007-11-07 Till Straumann + + * score/include/rtems/score/isr.h: added RTEMS_COMPILER_MEMORY_BARRIER + around _CPU_ISR_Set_level(). + 2007-11-07 Joel Sherrill * score/inline/rtems/score/object.inl: During test coverage analysis, 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