aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2004-01-22 06:56:00 +0000
committerPeter Grehan <grehan@FreeBSD.org>2004-01-22 06:56:00 +0000
commit53cd4099fb837b9083922b5c3ec44ec26d2bfe3a (patch)
tree45b3e60f9266566f0d9715238e27b970ec580e01
parente6fb5181c4ed0a78c796bd0b9f26f9165d1ddc8f (diff)
downloadsrc-53cd4099fb837b9083922b5c3ec44ec26d2bfe3a.tar.gz
src-53cd4099fb837b9083922b5c3ec44ec26d2bfe3a.zip
Make proc's kg_nice/ki_nice explicitly signed for PPC. This is a
no-op on {i386/alpha/ia64/sparc64} where chars are signed by default. Should help ARM and S390 which also suffer from this. Tested on: ppc, i386, objdump disasm before/after diffs Reviewed by: obrien, bde (a while back)
Notes
Notes: svn path=/head/; revision=124829
-rw-r--r--sys/sys/proc.h2
-rw-r--r--sys/sys/user.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 08794e34c786..83dd537c6501 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -510,7 +510,7 @@ struct ksegrp {
#define kg_startcopy kg_endzero
u_char kg_pri_class; /* (j) Scheduling class. */
u_char kg_user_pri; /* (j) User pri from estcpu and nice. */
- char kg_nice; /* (c + j) Process "nice" value. */
+ signed char kg_nice; /* (c + j) Process "nice" value. */
#define kg_endcopy kg_numthreads
int kg_numthreads; /* (j) Num threads in total. */
int kg_kses; /* (j) Num KSEs in group. */
diff --git a/sys/sys/user.h b/sys/sys/user.h
index a52610f2680f..3524cce3043f 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -143,7 +143,7 @@ struct kinfo_proc {
long ki_kiflag; /* KI_* flags (below) */
int ki_traceflag; /* Kernel trace points */
char ki_stat; /* S* process status */
- char ki_nice; /* Process "nice" value */
+ signed char ki_nice; /* Process "nice" value */
char ki_lock; /* Process lock (prevent swap) count */
char ki_rqindex; /* Run queue index */
u_char ki_oncpu; /* Which cpu we are on */