diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-10 08:10:29 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-10 08:32:36 +0100 |
commit | b318cb138fad4a92fe2f30f197dc13abdac0ab0b (patch) | |
tree | 90cfaf87f3ca8e98d224c1ae3800b679f7d1013e /cpukit/score/cpu/sparc/rtems/score/cpu.h | |
parent | bsp/tqm8xx: Fix linker set description (diff) | |
download | rtems-b318cb138fad4a92fe2f30f197dc13abdac0ab0b.tar.bz2 |
sparc: Simplify _CPU_Get_current_per_CPU_control()
Drop the superfluous parenthesis since this confuses the C++ compiler of
some GCC versions. See also
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064
Diffstat (limited to 'cpukit/score/cpu/sparc/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/sparc/rtems/score/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index b73a56e0c0..89c7dcd31b 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -1204,7 +1204,7 @@ void _CPU_Context_restore( */ register struct Per_CPU_Control *_SPARC_Per_CPU_current __asm__( "g6" ); -#define _CPU_Get_current_per_CPU_control() ( _SPARC_Per_CPU_current ) +#define _CPU_Get_current_per_CPU_control() _SPARC_Per_CPU_current #if defined(RTEMS_SMP) uint32_t _CPU_SMP_Initialize( void ); |