Add a macro to get the context from a tte tag, not necesarily a whole

tte.  Remove the old inline.
This commit is contained in:
Jake Burkholder 2001-09-30 18:55:05 +00:00
parent ba0eb60597
commit 954f0d930e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84182

View File

@ -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)
{