thread: reorder td_no_sleeping to plug two 4-byte holes on LP64

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2023-10-22 15:39:25 +00:00
parent 22b267e823
commit 5d29ead2e2
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ _Static_assert(offsetof(struct thread, td_flags) == 0x108,
"struct thread KBI td_flags");
_Static_assert(offsetof(struct thread, td_pflags) == 0x114,
"struct thread KBI td_pflags");
_Static_assert(offsetof(struct thread, td_frame) == 0x4b8,
_Static_assert(offsetof(struct thread, td_frame) == 0x4b0,
"struct thread KBI td_frame");
_Static_assert(offsetof(struct thread, td_emuldata) == 0x6c0,
"struct thread KBI td_emuldata");

View file

@ -314,8 +314,8 @@ struct thread {
struct osd td_osd; /* (k) Object specific data. */
struct vm_map_entry *td_map_def_user; /* (k) Deferred entries. */
pid_t td_dbg_forked; /* (c) Child pid for debugger. */
struct vnode *td_vp_reserved;/* (k) Preallocated vnode. */
u_int td_no_sleeping; /* (k) Sleeping disabled count. */
struct vnode *td_vp_reserved;/* (k) Preallocated vnode. */
void *td_su; /* (k) FFS SU private */
sbintime_t td_sleeptimo; /* (t) Sleep timeout. */
int td_rtcgen; /* (s) rtc_generation of abs. sleep */