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:
parent
c552424869
commit
ac0e71fb28
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user