diff options
author | adrian <adrian@FreeBSD.org> | 2014-10-18 19:36:11 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2014-10-18 19:36:11 +0000 |
commit | 9b44fe556be01b7365289ce03c873448f9158644 (patch) | |
tree | 001cb1730d8c530fa2dede702f8a9a45fb21aef9 /sys/compat/freebsd32 | |
parent | 073b7e1f4d4771f686e7f67b7d18d1b9fc02cdb8 (diff) | |
download | FreeBSD-src-9b44fe556be01b7365289ce03c873448f9158644.zip FreeBSD-src-9b44fe556be01b7365289ce03c873448f9158644.tar.gz |
Update the ULE scheduler + thread and kinfo structs to use int for cpuid
rather than u_char.
To try and play nice with the ABI, the u_char CPU ID values are clamped
at 254. The new fields now contain the full CPU ID, or -1 for no cpu.
Differential Revision: D955
Reviewed by: jhb, kib
Sponsored by: Norse Corp, Inc.
Diffstat (limited to 'sys/compat/freebsd32')
-rw-r--r-- | sys/compat/freebsd32/freebsd32.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/compat/freebsd32/freebsd32.h b/sys/compat/freebsd32/freebsd32.h index 155612b..af10055 100644 --- a/sys/compat/freebsd32/freebsd32.h +++ b/sys/compat/freebsd32/freebsd32.h @@ -332,8 +332,8 @@ struct kinfo_proc32 { signed char ki_nice; char ki_lock; char ki_rqindex; - u_char ki_oncpu; - u_char ki_lastcpu; + u_char ki_oncpu_old; + u_char ki_lastcpu_old; char ki_tdname[TDNAMLEN+1]; char ki_wmesg[WMESGLEN+1]; char ki_login[LOGNAMELEN+1]; @@ -343,6 +343,8 @@ struct kinfo_proc32 { char ki_loginclass[LOGINCLASSLEN+1]; char ki_sparestrings[50]; int ki_spareints[KI_NSPARE_INT]; + int ki_oncpu; + int ki_lastcpu; int ki_tracer; int ki_flag2; int ki_fibnum; |