From e2fcb7dc64c040b8298684148390aba6bf4f4912 Mon Sep 17 00:00:00 2001 From: Nick Withers Date: Wed, 15 Jul 2015 08:55:42 +0200 Subject: powerpc: Fix _CPU_Counter_read() The mftb is not available on Book E processors. Use SPR 268 instead. Close #2369. --- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index 06cab2c156..45298a46dd 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -842,7 +842,7 @@ static inline CPU_Counter_ticks _CPU_Counter_read( void ) /* Use Alternate Time Base */ __asm__ volatile( "mfspr %0, 526" : "=r" (value) ); #else - __asm__ volatile( "mftb %0" : "=r" (value) ); + __asm__ volatile( "mfspr %0, 268" : "=r" (value) ); #endif return value; -- cgit v1.2.3