Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_thread.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* On the stable branches after KBI freeze, conditions must not be | * On the stable branches after KBI freeze, conditions must not be | ||||
* violated. Typically new fields are moved to the end of the | * violated. Typically new fields are moved to the end of the | ||||
* structures. | * structures. | ||||
*/ | */ | ||||
#ifdef __amd64__ | #ifdef __amd64__ | ||||
_Static_assert(offsetof(struct thread, td_flags) == 0x108, | _Static_assert(offsetof(struct thread, td_flags) == 0x108, | ||||
"struct thread KBI td_flags"); | "struct thread KBI td_flags"); | ||||
_Static_assert(offsetof(struct thread, td_pflags) == 0x110, | _Static_assert(offsetof(struct thread, td_pflags) == 0x114, | ||||
"struct thread KBI td_pflags"); | "struct thread KBI td_pflags"); | ||||
_Static_assert(offsetof(struct thread, td_frame) == 0x4a8, | _Static_assert(offsetof(struct thread, td_frame) == 0x4d0, | ||||
"struct thread KBI td_frame"); | "struct thread KBI td_frame"); | ||||
_Static_assert(offsetof(struct thread, td_emuldata) == 0x6b0, | _Static_assert(offsetof(struct thread, td_emuldata) == 0x6e0, | ||||
"struct thread KBI td_emuldata"); | "struct thread KBI td_emuldata"); | ||||
_Static_assert(offsetof(struct proc, p_flag) == 0xb8, | _Static_assert(offsetof(struct proc, p_flag) == 0xb8, | ||||
"struct proc KBI p_flag"); | "struct proc KBI p_flag"); | ||||
_Static_assert(offsetof(struct proc, p_pid) == 0xc4, | _Static_assert(offsetof(struct proc, p_pid) == 0xc4, | ||||
"struct proc KBI p_pid"); | "struct proc KBI p_pid"); | ||||
_Static_assert(offsetof(struct proc, p_filemon) == 0x3c8, | _Static_assert(offsetof(struct proc, p_filemon) == 0x3c8, | ||||
"struct proc KBI p_filemon"); | "struct proc KBI p_filemon"); | ||||
_Static_assert(offsetof(struct proc, p_comm) == 0x3e0, | _Static_assert(offsetof(struct proc, p_comm) == 0x3e0, | ||||
"struct proc KBI p_comm"); | "struct proc KBI p_comm"); | ||||
_Static_assert(offsetof(struct proc, p_emuldata) == 0x4c8, | _Static_assert(offsetof(struct proc, p_emuldata) == 0x4c8, | ||||
"struct proc KBI p_emuldata"); | "struct proc KBI p_emuldata"); | ||||
#endif | #endif | ||||
#ifdef __i386__ | #ifdef __i386__ | ||||
_Static_assert(offsetof(struct thread, td_flags) == 0x9c, | _Static_assert(offsetof(struct thread, td_flags) == 0x9c, | ||||
"struct thread KBI td_flags"); | "struct thread KBI td_flags"); | ||||
_Static_assert(offsetof(struct thread, td_pflags) == 0xa4, | _Static_assert(offsetof(struct thread, td_pflags) == 0xa4, | ||||
"struct thread KBI td_pflags"); | "struct thread KBI td_pflags"); | ||||
_Static_assert(offsetof(struct thread, td_frame) == 0x308, | _Static_assert(offsetof(struct thread, td_frame) == 0x31c, | ||||
"struct thread KBI td_frame"); | "struct thread KBI td_frame"); | ||||
_Static_assert(offsetof(struct thread, td_emuldata) == 0x34c, | _Static_assert(offsetof(struct thread, td_emuldata) == 0x360, | ||||
"struct thread KBI td_emuldata"); | "struct thread KBI td_emuldata"); | ||||
_Static_assert(offsetof(struct proc, p_flag) == 0x6c, | _Static_assert(offsetof(struct proc, p_flag) == 0x6c, | ||||
"struct proc KBI p_flag"); | "struct proc KBI p_flag"); | ||||
_Static_assert(offsetof(struct proc, p_pid) == 0x78, | _Static_assert(offsetof(struct proc, p_pid) == 0x78, | ||||
"struct proc KBI p_pid"); | "struct proc KBI p_pid"); | ||||
_Static_assert(offsetof(struct proc, p_filemon) == 0x270, | _Static_assert(offsetof(struct proc, p_filemon) == 0x270, | ||||
"struct proc KBI p_filemon"); | "struct proc KBI p_filemon"); | ||||
_Static_assert(offsetof(struct proc, p_comm) == 0x284, | _Static_assert(offsetof(struct proc, p_comm) == 0x284, | ||||
▲ Show 20 Lines • Show All 1,646 Lines • Show Last 20 Lines |