summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/tte.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-01-08 05:07:58 +0000
committerjake <jake@FreeBSD.org>2002-01-08 05:07:58 +0000
commiteb9c7712df6cb5bf4ce26d771c5c8b3fffb04860 (patch)
tree7a137cdd7f5056e132f72cfb0be68d598fddd264 /sys/sparc64/include/tte.h
parent2fdfe48a8861e509e987217b9919ffbcc7e09986 (diff)
downloadFreeBSD-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.h1
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;
OpenPOWER on IntegriCloud