diff options
author | jake <jake@FreeBSD.org> | 2002-01-08 05:07:58 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-01-08 05:07:58 +0000 |
commit | eb9c7712df6cb5bf4ce26d771c5c8b3fffb04860 (patch) | |
tree | 7a137cdd7f5056e132f72cfb0be68d598fddd264 /sys/sparc64/include/tte.h | |
parent | 2fdfe48a8861e509e987217b9919ffbcc7e09986 (diff) | |
download | FreeBSD-src-eb9c7712df6cb5bf4ce26d771c5c8b3fffb04860.zip FreeBSD-src-eb9c7712df6cb5bf4ce26d771c5c8b3fffb04860.tar.gz |
Add a macro for getting the tlbs (itlb and/or dtlb) which the given
tte may be mapped by.
Diffstat (limited to 'sys/sparc64/include/tte.h')
-rw-r--r-- | sys/sparc64/include/tte.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/include/tte.h b/sys/sparc64/include/tte.h index 185eb3f..934a7ac 100644 --- a/sys/sparc64/include/tte.h +++ b/sys/sparc64/include/tte.h @@ -101,6 +101,7 @@ #define TT_GET_CTX(tag) (((tag) >> TT_CTX_SHIFT) & TT_CTX_MASK) #define TD_GET_SIZE(d) (((d) >> TD_SIZE_SHIFT) & 3) #define TD_GET_PA(d) ((d) & TD_PA_MASK) +#define TD_GET_TLB(d) (((d) & TD_EXEC) ? (TLB_DTLB | TLB_ITLB) : TLB_DTLB) struct tte { u_long tte_tag; |