From 47d6013417c63115356042695e7125ecfcfe4696 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 19 Feb 2014 13:52:41 +0100 Subject: 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. --- cpukit/score/include/rtems/score/smp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems') 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(); } -- cgit v1.2.3