Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 quick hack for shared IRQ issue.
details: https://anonhg.NetBSD.org/src/rev/009798b83814
branches: trunk
changeset: 340851:009798b83814
user: knakahara <knakahara%NetBSD.org@localhost>
date: Tue Oct 06 09:44:31 2015 +0000
description:
quick hack for shared IRQ issue.
diffstat:
sys/arch/x86/x86/intr.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 2a033a373b16 -r 009798b83814 sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c Tue Oct 06 08:57:34 2015 +0000
+++ b/sys/arch/x86/x86/intr.c Tue Oct 06 09:44:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.87 2015/08/17 06:16:03 knakahara Exp $ */
+/* $NetBSD: intr.c,v 1.88 2015/10/06 09:44:31 knakahara Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.87 2015/08/17 06:16:03 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.88 2015/10/06 09:44:31 knakahara Exp $");
#include "opt_intrdebug.h"
#include "opt_multiprocessor.h"
@@ -1954,6 +1954,10 @@
KASSERT(mutex_owned(&cpu_lock));
+ /* XXX avoid shared IRQ issue. */
+ if (isp->is_handlers == NULL)
+ return false;
+
ci = isp->is_handlers->ih_cpu;
KASSERT(ci != NULL);
Home |
Main Index |
Thread Index |
Old Index