From d36c457fa83db4fb90f09eebc77c3a873bef30b1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Aug 2003 17:09:26 +0000 Subject: 2003-08-21 Till Straumann PR 457/bsps * rtems/powerpc/registers.h: Add a few definitions for the PowerPC thermal assistance unit. --- cpukit/score/cpu/powerpc/ChangeLog | 6 ++++++ cpukit/score/cpu/powerpc/rtems/powerpc/registers.h | 15 ++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'cpukit') diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog index 58d4fe23b3..21cb796049 100644 --- a/cpukit/score/cpu/powerpc/ChangeLog +++ b/cpukit/score/cpu/powerpc/ChangeLog @@ -1,3 +1,9 @@ +2003-08-21 Till Straumann + + PR 457/bsps + * rtems/powerpc/registers.h: Add a few definitions for the PowerPC + thermal assistance unit. + 2003-08-11 Ralf Corsepius * configure.ac: Use rtems-bugs@rtems.com as bug report email address. diff --git a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h index 82f45d408c..f7ca1f3f9f 100644 --- a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h +++ b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h @@ -148,13 +148,14 @@ n: #define THRM1 1020 #define THRM2 1021 #define THRM3 1022 -#define THRM1_TIN 0x1 -#define THRM1_TIV 0x2 -#define THRM1_THRES (0x7f<<2) -#define THRM1_TID (1<<29) -#define THRM1_TIE (1<<30) -#define THRM1_V (1<<31) -#define THRM3_E (1<<31) +#define THRM1_TIN (1<<(31-0)) +#define THRM1_TIV (1<<(31-1)) +#define THRM1_THRES (0x7f<<(31-8)) +#define THRM1_TID (1<<(31-29)) +#define THRM1_TIE (1<<(31-30)) +#define THRM1_V (1<<(31-31)) +#define THRM3_SITV (0x1fff << (31-30)) +#define THRM3_E (1<<(31-31)) /* Segment Registers */ #define SR0 0 -- cgit v1.2.3