[rtems commit] powerpc: Fix interrupt profiling for e6500

Sebastian Huber sebh at rtems.org
Thu Nov 24 08:13:03 UTC 2016


Module:    rtems
Branch:    master
Commit:    01ac1db824a90a4d1d2b3198d3bae0f3603df01e
Changeset: http://git.rtems.org/rtems/commit/?id=01ac1db824a90a4d1d2b3198d3bae0f3603df01e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 24 08:32:01 2016 +0100

powerpc: Fix interrupt profiling for e6500

---

 .../libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S
index 4c9d8aa..34777e5 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S
@@ -54,7 +54,9 @@
 #define ENTRY_INSTANT_OFFSET GPR13_OFFSET
 
 .macro GET_TIME_BASE REG
-#ifdef ppc8540
+#if defined(__PPC_CPU_E6500__)
+	mfspr \REG, FSL_EIS_ATBL
+#elif defined(ppc8540)
 	mfspr	\REG, TBRL
 #else /* ppc8540 */
 	mftb	\REG




More information about the vc mailing list