struct thread also has some incorrect typedefs
u_char td_rqindex; /* (t) Run queue index. */ // 0x360
u_char td_base_pri; /* (t) Thread base kernel priority. */
u_char td_priority; /* (t) Thread active priority. */ // 0x364
u_char td_pri_class; /* (t) Scheduling class. */
u_char td_user_pri; /* (t) User pri from estcpu and nice. */ // 0x368
u_char td_base_user_pri; /* (t) Base user pri */
These should be u_short instead of u_char.
struct thread also has some incorrect typedefs
These should be u_short instead of u_char.