diff options
author | jake <jake@FreeBSD.org> | 2001-09-30 18:55:05 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2001-09-30 18:55:05 +0000 |
commit | ac0e71fb28742bf361d5473b8200a62b97c05a93 (patch) | |
tree | ed52974ff7076c01d5358729239f903e912a32db /sys | |
parent | c5524248692254bbd96cb8fb258266f83a12ecd8 (diff) | |
download | FreeBSD-src-ac0e71fb28742bf361d5473b8200a62b97c05a93.zip FreeBSD-src-ac0e71fb28742bf361d5473b8200a62b97c05a93.tar.gz |
Add a macro to get the context from a tte tag, not necesarily a whole
tte. Remove the old inline.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/include/tte.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/sparc64/include/tte.h b/sys/sparc64/include/tte.h index d2bfec7..65c4055 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) { |