summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
{