diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2007-11-14 04:26:00 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2007-11-14 04:26:00 +0000 |
commit | 6ae32a269eb7ac2bf943b63301ba07acae096e9d (patch) | |
tree | a8607bb32c66971a239cb94ec45a8c0860e7604b /cpukit/score/cpu/powerpc/rtems/powerpc/registers.h | |
parent | gcc-core-4.2.2-rtems4.9-20071114.diff. (diff) | |
download | rtems-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 '')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/powerpc/registers.h | 19 |
1 files changed, 19 insertions, 0 deletions
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; \ |