summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-03-05 16:38:13 +0000
committerbde <bde@FreeBSD.org>1999-03-05 16:38:13 +0000
commit79ceaf95c22bc4a24d2b9c4537db262e8bb25037 (patch)
treec861eb94437a64979a963c3b3d0caf8a4ea07dbe /sys/i386
parent86095272bdc1a9961729279d77c8548cd0c79f16 (diff)
downloadFreeBSD-src-79ceaf95c22bc4a24d2b9c4537db262e8bb25037.zip
FreeBSD-src-79ceaf95c22bc4a24d2b9c4537db262e8bb25037.tar.gz
The magic "no-cpu" cpu number is 0xff. Don't misrepresent cpu
numbers as chars or use bogus casts in an attempt to unmisrepresnt them. In top, don't assume that 0xff is the only negative cpu number when cpu numbers are (mis)represented.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/mp_machdep.c6
-rw-r--r--sys/i386/i386/mptable.c6
-rw-r--r--sys/i386/include/mptable.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c
index 6f7c881..2267f5a 100644
--- a/sys/i386/i386/mp_machdep.c
+++ b/sys/i386/i386/mp_machdep.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.91 1999/02/19 19:34:47 luoqi Exp $
+ * $Id: mp_machdep.c,v 1.92 1999/02/26 03:42:50 tegge Exp $
*/
#include "opt_smp.h"
@@ -2590,7 +2590,7 @@ forward_signal(struct proc *p)
while (1) {
if (p->p_stat != SRUN)
return;
- id = (u_char) p->p_oncpu;
+ id = p->p_oncpu;
if (id == 0xff)
return;
map = (1<<id);
@@ -2608,7 +2608,7 @@ forward_signal(struct proc *p)
break;
}
}
- if (id == (u_char) p->p_oncpu)
+ if (id == p->p_oncpu)
return;
}
}
diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c
index 6f7c881..2267f5a 100644
--- a/sys/i386/i386/mptable.c
+++ b/sys/i386/i386/mptable.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.91 1999/02/19 19:34:47 luoqi Exp $
+ * $Id: mp_machdep.c,v 1.92 1999/02/26 03:42:50 tegge Exp $
*/
#include "opt_smp.h"
@@ -2590,7 +2590,7 @@ forward_signal(struct proc *p)
while (1) {
if (p->p_stat != SRUN)
return;
- id = (u_char) p->p_oncpu;
+ id = p->p_oncpu;
if (id == 0xff)
return;
map = (1<<id);
@@ -2608,7 +2608,7 @@ forward_signal(struct proc *p)
break;
}
}
- if (id == (u_char) p->p_oncpu)
+ if (id == p->p_oncpu)
return;
}
}
diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h
index 6f7c881..2267f5a 100644
--- a/sys/i386/include/mptable.h
+++ b/sys/i386/include/mptable.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mp_machdep.c,v 1.91 1999/02/19 19:34:47 luoqi Exp $
+ * $Id: mp_machdep.c,v 1.92 1999/02/26 03:42:50 tegge Exp $
*/
#include "opt_smp.h"
@@ -2590,7 +2590,7 @@ forward_signal(struct proc *p)
while (1) {
if (p->p_stat != SRUN)
return;
- id = (u_char) p->p_oncpu;
+ id = p->p_oncpu;
if (id == 0xff)
return;
map = (1<<id);
@@ -2608,7 +2608,7 @@ forward_signal(struct proc *p)
break;
}
}
- if (id == (u_char) p->p_oncpu)
+ if (id == p->p_oncpu)
return;
}
}
OpenPOWER on IntegriCloud