[rtems commit] powerpc: Add FSL_EIS_TENSR, etc. defines
Sebastian Huber
sebh at rtems.org
Fri Apr 22 12:31:10 UTC 2016
Module: rtems
Branch: master
Commit: d35e6dded345455bd828745e77daded49c9100a4
Changeset: http://git.rtems.org/rtems/commit/?id=d35e6dded345455bd828745e77daded49c9100a4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Apr 22 14:10:47 2016 +0200
powerpc: Add FSL_EIS_TENSR, etc. defines
---
c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c | 2 +-
cpukit/score/cpu/powerpc/rtems/powerpc/registers.h | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c b/c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c
index e84058a..15282b5 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c
+++ b/c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c
@@ -107,7 +107,7 @@ static void start_thread_if_necessary(uint32_t cpu_index_self)
PPC_SET_THREAD_MGMT_REGISTER(289, QORIQ_INITIAL_MSR);
/* Thread Enable Set (TENS) */
- PPC_SET_SPECIAL_PURPOSE_REGISTER(438, 1U << i);
+ PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_TENS, 1U << i);
}
}
#endif
diff --git a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
index 0094a94..4617209 100644
--- a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
+++ b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
@@ -467,6 +467,13 @@ lidate */
#define FSL_EIS_SVR 1023
+/* Freescale Book E Implementation Standards (EIS): Thread Management and Control Registers */
+
+#define FSL_EIS_TENSR 437
+#define FSL_EIS_TENS 438
+#define FSL_EIS_TENC 439
+#define FSL_EIS_PPR32 898
+
/* Freescale Book E Implementation Standards (EIS): MMU Control and Status */
#define FSL_EIS_MAS0 624
More information about the vc
mailing list