diff options
author | jake <jake@FreeBSD.org> | 2001-12-29 06:50:25 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-12-29 06:50:25 +0000 |
commit | 265a5e81417106e69de0de8053f80b7c7e767daa (patch) | |
tree | 5d5927eee8515bf6a7dab984cd45b78137154a99 /sys/sparc64/include/ccr.h | |
parent | 9a06dbc23e21c4ddbc6dca64b2c0b710260e69d2 (diff) | |
download | FreeBSD-src-265a5e81417106e69de0de8053f80b7c7e767daa.zip FreeBSD-src-265a5e81417106e69de0de8053f80b7c7e767daa.tar.gz |
Add definitions for the number of bits in the icc and xcc fields
of the ccr, as well as the shifts and masks for each.
Submitted by: tmm
Diffstat (limited to 'sys/sparc64/include/ccr.h')
-rw-r--r-- | sys/sparc64/include/ccr.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/sys/sparc64/include/ccr.h b/sys/sparc64/include/ccr.h index 8d808e7..2b7ac84 100644 --- a/sys/sparc64/include/ccr.h +++ b/sys/sparc64/include/ccr.h @@ -27,14 +27,20 @@ #ifndef _MACHINE_CCR_H_ #define _MACHINE_CCR_H_ -#define ICC_C (1UL << 0) -#define ICC_V (1UL << 1) -#define ICC_Z (1UL << 2) -#define ICC_N (1UL << 3) +#define ICC_SHIFT 0 +#define ICC_BITS 4 +#define ICC_MASK ((1UL << ICC_BITS) - 1) +#define ICC_C (1UL << 0) +#define ICC_V (1UL << 1) +#define ICC_Z (1UL << 2) +#define ICC_N (1UL << 3) -#define XCC_C (1UL << 4) -#define XCC_V (1UL << 5) -#define XCC_Z (1UL << 6) -#define XCC_N (1UL << 7) +#define XCC_SHIFT 4 +#define XCC_BITS 4 +#define XCC_MASK (((1UL << XCC_BITS) - 1) << XCC_SHIFT) +#define XCC_C (1UL << 4) +#define XCC_V (1UL << 5) +#define XCC_Z (1UL << 6) +#define XCC_N (1UL << 7) #endif /* !_MACHINE_CCR_H_ */ |