forked from Imagelibrary/rtems
sparc: Use __leon__ multilib define
This commit is contained in:
@@ -15,8 +15,9 @@
|
|||||||
|
|
||||||
#include <rtems/score/cpu.h>
|
#include <rtems/score/cpu.h>
|
||||||
|
|
||||||
|
#if !defined(__leon__)
|
||||||
uint32_t _CPU_SMP_Get_current_processor( void )
|
uint32_t _CPU_SMP_Get_current_processor( void )
|
||||||
{
|
{
|
||||||
return _LEON3_Get_current_processor();
|
return _LEON3_Get_current_processor();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -1163,7 +1163,14 @@ void _CPU_Context_restore(
|
|||||||
#if defined(RTEMS_SMP)
|
#if defined(RTEMS_SMP)
|
||||||
uint32_t _CPU_SMP_Initialize( uint32_t configured_cpu_count );
|
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 );
|
void _CPU_SMP_Send_interrupt( uint32_t target_processor_index );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user