From d35e6dded345455bd828745e77daded49c9100a4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 22 Apr 2016 14:10:47 +0200 Subject: [PATCH] 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 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