summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sparc/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/sparc/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/sparc/rtems/score/cpu.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h
index b23f93c51d..e43b3bee5e 100644
--- a/cpukit/score/cpu/sparc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h
@@ -1163,7 +1163,14 @@ void _CPU_Context_restore(
#if defined(RTEMS_SMP)
uint32_t _CPU_SMP_Initialize( uint32_t configured_cpu_count );
- uint32_t _CPU_SMP_Get_current_processor( void );
+ #if defined(__leon__)
+ static inline uint32_t _CPU_SMP_Get_current_processor( void )
+ {
+ return _LEON3_Get_current_processor();
+ }
+ #else
+ uint32_t _CPU_SMP_Get_current_processor( void );
+ #endif
void _CPU_SMP_Send_interrupt( uint32_t target_processor_index );