summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2007-11-14 04:26:00 +0000
committerTill Straumann <strauman@slac.stanford.edu>2007-11-14 04:26:00 +0000
commit6ae32a269eb7ac2bf943b63301ba07acae096e9d (patch)
treea8607bb32c66971a239cb94ec45a8c0860e7604b /cpukit
parentgcc-core-4.2.2-rtems4.9-20071114.diff. (diff)
downloadrtems-6ae32a269eb7ac2bf943b63301ba07acae096e9d.tar.bz2
2007-11-13 Till Straumann <strauman@slac.stanford.edu>
* rtems/powerpc/registers.h: Added SPR definitions for BookE DECAR, TCR, TSR.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/cpu/powerpc/ChangeLog5
-rw-r--r--cpukit/score/cpu/powerpc/rtems/powerpc/registers.h19
2 files changed, 24 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog
index 86e4eedda8..e1a9ef0c4a 100644
--- a/cpukit/score/cpu/powerpc/ChangeLog
+++ b/cpukit/score/cpu/powerpc/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-13 Till Straumann <strauman@slac.stanford.edu>
+
+ * rtems/powerpc/registers.h: Added SPR definitions for BookE
+ DECAR, TCR, TSR.
+
2007-05-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Remove CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES.
diff --git a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
index f9cab2f565..2033f79c53 100644
--- a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
+++ b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
@@ -286,6 +286,25 @@ lidate */
#define SR14 14
#define SR15 15
+#define BOOKE_DECAR 54
+
+#define BOOKE_TSR 336
+#define BOOKE_TSR_ENW (1<<31)
+#define BOOKE_TSR_WIS (1<<30)
+#define BOOKE_TSR_DIS (1<<27)
+#define BOOKE_TSR_FIS (1<<26)
+
+#define BOOKE_TCR 340
+#define BOOKE_TCR_WP(x) (((x)&3)<<30)
+#define BOOKE_TCR_WRC(x) (((x)&3)<<28)
+#define BOOKE_TCR_WIE (1<<27)
+#define BOOKE_TCR_DIE (1<<26)
+#define BOOKE_TCR_FP(x) (((x)&3)<<24)
+#define BOOKE_TCR_FIE (1<<23)
+#define BOOKE_TCR_ARE (1<<22)
+#define BOOKE_TCR_WPEXT(x) (((x)&0xf)<<17)
+#define BOOKE_TCR_FPEXT(x) (((x)&0xf)<<13)
+
#define _CPU_MSR_GET( _msr_value ) \
do { \
_msr_value = 0; \