aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include/tte.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-05-29 05:56:05 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-05-29 05:56:05 +0000
commite793e4d0b375c1e739afecc25d1c75a3e99b19f8 (patch)
treee5bcdc7e3ba2ba4f16ddbec01d90f1afaa0d5aa2 /sys/sparc64/include/tte.h
parent35738638d6da22457eeb50724ade02706810402e (diff)
Add pv list linkage and a pmap pointer to struct tte. Remove separately
allocated pv entries and use the linkage in the tte for pv operations.
Notes
Notes: svn path=/head/; revision=97446
Diffstat (limited to 'sys/sparc64/include/tte.h')
-rw-r--r--sys/sparc64/include/tte.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sparc64/include/tte.h b/sys/sparc64/include/tte.h
index 39e85afde685..22f7c1061270 100644
--- a/sys/sparc64/include/tte.h
+++ b/sys/sparc64/include/tte.h
@@ -32,7 +32,7 @@
#ifndef _MACHINE_TTE_H_
#define _MACHINE_TTE_H_
-#define TTE_SHIFT (4)
+#define TTE_SHIFT (5)
#define TD_SIZE_SHIFT (61)
#define TD_SOFT2_SHIFT (50)
@@ -98,10 +98,16 @@
(((tp)->tte_data & TD_EXEC) ? (TLB_DTLB | TLB_ITLB) : TLB_DTLB)
#define TTE_GET_VA(tp) \
((tp)->tte_vpn << PAGE_SHIFT)
+#define TTE_GET_PMAP(tp) \
+ ((tp)->tte_pmap)
+#define TTE_ZERO(tp) \
+ bzero(tp, sizeof(*tp))
struct tte {
u_long tte_vpn;
u_long tte_data;
+ STAILQ_ENTRY(tte) tte_link;
+ struct pmap *tte_pmap;
};
static __inline int