mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
powerpc: Fix _CPU_Counter_read() for MPC860
The mpc860 is a RTEMS-specific multilib define, see GCC "gcc/config/rs6000/rtems.h".
This commit is contained in:
1 parent
aaa6653b72
commit
fe283f6c77
1 file changed
+2
@@ -745,6 +745,8 @@ static inline CPU_Counter_ticks _CPU_Counter_read( void )
|
||||
#if defined(__PPC_CPU_E6500__)
|
||||
/* Use Alternate Time Base */
|
||||
__asm__ volatile( "mfspr %0, 526" : "=r" (value) );
|
||||
#elif defined(mpc860)
|
||||
__asm__ volatile( "mftb %0" : "=r" (value) );
|
||||
#else
|
||||
__asm__ volatile( "mfspr %0, 268" : "=r" (value) );
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user