Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Don't send IPI to CPU which...
details: https://anonhg.NetBSD.org/src/rev/866f4e081393
branches: sommerfeld_i386mp_1
changeset: 482273:866f4e081393
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Mon Aug 21 00:27:00 2000 +0000
description:
Don't send IPI to CPU which isn't running yet..
diffstat:
sys/arch/i386/i386/ipifuncs.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 46510cd9b8d7 -r 866f4e081393 sys/arch/i386/i386/ipifuncs.c
--- a/sys/arch/i386/i386/ipifuncs.c Sat Aug 19 17:27:28 2000 +0000
+++ b/sys/arch/i386/i386/ipifuncs.c Mon Aug 21 00:27:00 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipifuncs.c,v 1.1.2.5 2000/08/18 03:19:27 sommerfeld Exp $ */
+/* $NetBSD: ipifuncs.c,v 1.1.2.6 2000/08/21 00:27:00 sommerfeld Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -127,6 +127,10 @@
i386_atomic_setbits_l(&ci->ci_ipis, ipimask);
+ /* Don't send IPI to cpu which isn't (yet) running. */
+ if (!(ci->ci_flags & CPUF_RUNNING))
+ return;
+
ret = i386_ipi(LAPIC_IPI_VECTOR, ci->ci_cpuid, LAPIC_DLMODE_FIXED);
if (ret != 0) {
printf("ipi of %x from %s to %s failed\n",
Home |
Main Index |
Thread Index |
Old Index