diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-19 13:52:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-21 09:38:54 +0100 |
commit | 47d6013417c63115356042695e7125ecfcfe4696 (patch) | |
tree | e45e767e2d794cbd7ab5d0932aba9d38dfc22e87 /cpukit/score/include/rtems/score/smp.h | |
parent | score: _Thread_Start_multitasking() (diff) | |
download | rtems-47d6013417c63115356042695e7125ecfcfe4696.tar.bz2 |
score: _CPU_SMP_Get_current_processor()
Remove RTEMS_COMPILER_PURE_ATTRIBUTE from _SMP_Get_current_processor()
and all _CPU_SMP_Get_current_processor(). Make inline ASM statements
volatile again. Test smptests/smpmigration01 showed that GCC optimizes
too much otherwise.
Diffstat (limited to 'cpukit/score/include/rtems/score/smp.h')
-rw-r--r-- | cpukit/score/include/rtems/score/smp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/smp.h b/cpukit/score/include/rtems/score/smp.h index 521cd7b21e..fcf20366f7 100644 --- a/cpukit/score/include/rtems/score/smp.h +++ b/cpukit/score/include/rtems/score/smp.h @@ -46,8 +46,7 @@ extern "C" { #endif #if defined( RTEMS_SMP ) - RTEMS_COMPILER_PURE_ATTRIBUTE static inline uint32_t - _SMP_Get_current_processor( void ) + static inline uint32_t _SMP_Get_current_processor( void ) { return _CPU_SMP_Get_current_processor(); } |