aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2001-09-30 18:55:05 +0000
committerJake Burkholder <jake@FreeBSD.org>2001-09-30 18:55:05 +0000
commit954f0d930ea9143865ad0278cce643c570f0c7a9 (patch)
treeed52974ff7076c01d5358729239f903e912a32db /sys
parentba0eb605979e31f62515c3a9490dfd05ed910e1f (diff)
Add a macro to get the context from a tte tag, not necesarily a whole
tte. Remove the old inline.
Notes
Notes: svn path=/head/; revision=84182
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/include/tte.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/sparc64/include/tte.h b/sys/sparc64/include/tte.h
index d2bfec714efe..65c405520c67 100644
--- a/sys/sparc64/include/tte.h
+++ b/sys/sparc64/include/tte.h
@@ -101,6 +101,8 @@
#define TD_W (1L << 1)
#define TD_G (1L << 0)
+#define TT_GET_CTX(tag) (((tag) >> TT_CTX_SHIFT) & TT_CTX_MASK)
+
struct tte {
u_long tte_tag;
u_long tte_data;
@@ -112,12 +114,6 @@ struct stte {
vm_offset_t st_prev;
};
-static __inline u_int
-tte_get_ctx(struct tte tte)
-{
- return ((tte.tte_tag >> TT_CTX_SHIFT) & TT_CTX_MASK);
-}
-
static __inline vm_offset_t
tte_get_vpn(struct tte tte)
{