Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Make i386_send_ipi return an error when i...
details: https://anonhg.NetBSD.org/src/rev/50fe384e5344
branches: trunk
changeset: 537789:50fe384e5344
user: fvdl <fvdl%NetBSD.org@localhost>
date: Sat Oct 05 21:19:39 2002 +0000
description:
Make i386_send_ipi return an error when it fails to send.
diffstat:
sys/arch/i386/i386/ipifuncs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 661fe94246fa -r 50fe384e5344 sys/arch/i386/i386/ipifuncs.c
--- a/sys/arch/i386/i386/ipifuncs.c Sat Oct 05 21:19:16 2002 +0000
+++ b/sys/arch/i386/i386/ipifuncs.c Sat Oct 05 21:19:39 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipifuncs.c,v 1.2 2002/10/01 12:56:53 fvdl Exp $ */
+/* $NetBSD: ipifuncs.c,v 1.3 2002/10/05 21:19:39 fvdl Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
}
#endif
-void
+int
i386_send_ipi (struct cpu_info *ci, int ipimask)
{
int ret;
@@ -151,7 +151,7 @@
/* Don't send IPI to cpu which isn't (yet) running. */
if (!(ci->ci_flags & CPUF_RUNNING))
- return;
+ return ENOENT;
ret = i386_ipi(LAPIC_IPI_VECTOR, ci->ci_cpuid, LAPIC_DLMODE_FIXED);
if (ret != 0) {
@@ -161,6 +161,7 @@
ci->ci_dev->dv_xname);
}
+ return ret;
}
void
Home |
Main Index |
Thread Index |
Old Index