diff options
author | grehan <grehan@FreeBSD.org> | 2004-01-22 06:56:00 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2004-01-22 06:56:00 +0000 |
commit | f96af44358658859315aa3054e6738579d20d071 (patch) | |
tree | 45b3e60f9266566f0d9715238e27b970ec580e01 /sys | |
parent | b9e0f0e1603c78b6ab35a80621c483ab02a076a5 (diff) | |
download | FreeBSD-src-f96af44358658859315aa3054e6738579d20d071.zip FreeBSD-src-f96af44358658859315aa3054e6738579d20d071.tar.gz |
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)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/proc.h | 2 | ||||
-rw-r--r-- | sys/sys/user.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 08794e3..83dd537 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 a52610f..3524cce 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 */ |