diff options
author | marius <marius@FreeBSD.org> | 2008-09-04 19:43:14 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-09-04 19:43:14 +0000 |
commit | 51bdea6a393f3fb153beba5446c84ade4340e2c7 (patch) | |
tree | dabccb4c5f6ddc9e5919a6e5229ae3868465e8e7 /sys/sparc64/include | |
parent | f8a9831413e72a339c1d500c85b3ae95a446b932 (diff) | |
download | FreeBSD-src-51bdea6a393f3fb153beba5446c84ade4340e2c7.zip FreeBSD-src-51bdea6a393f3fb153beba5446c84ade4340e2c7.tar.gz |
The physical address space of cheetah-class CPUs has been extended
to 43 bits so update TD_PA_BITS accordingly. For the most part this
increase is transparent to the existing code except for when reading
the physical address from ASI_{D,I}TLB_DATA_ACCESS_REG, which we
only do in the loader and which was already adjusted in r182478, or
from the OFW translations node.
While at it, ensure we are only taking valid OFW mapping entries
into account.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/tte.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/sparc64/include/tte.h b/sys/sparc64/include/tte.h index 72543fa..421bc16 100644 --- a/sys/sparc64/include/tte.h +++ b/sys/sparc64/include/tte.h @@ -36,21 +36,24 @@ #define TD_SIZE_SHIFT (61) #define TD_SOFT2_SHIFT (50) -#define TD_DIAG_SHIFT (41) +#define TD_DIAG_SF_SHIFT (41) +#define TD_RSVD_CH_SHIFT (43) #define TD_PA_SHIFT (13) #define TD_SOFT_SHIFT (7) #define TD_SIZE_BITS (2) #define TD_SOFT2_BITS (9) -#define TD_DIAG_BITS (9) +#define TD_DIAG_SF_BITS (9) +#define TD_RSVD_CH_BITS (7) #define TD_PA_CH_BITS (30) #define TD_PA_SF_BITS (28) -#define TD_PA_BITS TD_PA_SF_BITS +#define TD_PA_BITS TD_PA_CH_BITS #define TD_SOFT_BITS (6) #define TD_SIZE_MASK ((1UL << TD_SIZE_BITS) - 1) #define TD_SOFT2_MASK ((1UL << TD_SOFT2_BITS) - 1) -#define TD_DIAG_MASK ((1UL << TD_DIAG_BITS) - 1) +#define TD_DIAG_SF_MASK ((1UL << TD_DIAG_SF_BITS) - 1) +#define TD_RSVD_CH_MASK ((1UL << TD_RSVD_CH_BITS) - 1) #define TD_PA_CH_MASK ((1UL << TD_PA_CH_BITS) - 1) #define TD_PA_SF_MASK ((1UL << TD_PA_SF_BITS) - 1) #define TD_PA_MASK ((1UL << TD_PA_BITS) - 1) |