summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 14:10:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 14:30:05 +0200
commitd35e6dded345455bd828745e77daded49c9100a4 (patch)
treef48ae1efc332e3bf9a9cd019e3388adb78e3412a
parentnetwork: Fix warnings (diff)
downloadrtems-d35e6dded345455bd828745e77daded49c9100a4.tar.bz2
powerpc: Add FSL_EIS_TENSR, etc. defines
-rw-r--r--c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c2
-rw-r--r--cpukit/score/cpu/powerpc/rtems/powerpc/registers.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c b/c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c
index e84058a38f..15282b5a40 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 0094a942d9..46172099a4 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