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 When returning a cached shared irq event va...



details:   https://anonhg.NetBSD.org/src/rev/6103f823ee6a
branches:  trunk
changeset: 445346:6103f823ee6a
user:      cherry <cherry%NetBSD.org@localhost>
date:      Wed Oct 24 03:51:21 2018 +0000

description:
When returning a cached shared irq event value, DTRT

diffstat:

 sys/arch/x86/x86/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d4d35410c8a4 -r 6103f823ee6a sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c   Tue Oct 23 22:26:14 2018 +0000
+++ b/sys/arch/x86/x86/intr.c   Wed Oct 24 03:51:21 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.134 2018/10/08 08:05:08 cherry Exp $        */
+/*     $NetBSD: intr.c,v 1.135 2018/10/24 03:51:21 cherry 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.134 2018/10/08 08:05:08 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.135 2018/10/24 03:51:21 cherry Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -1294,7 +1294,7 @@
                 * Shared interrupt - we can't rebind.
                 * The port is shared instead.
                 */
-               evtchn = irq2port[gsi];
+               evtchn = irq2port[gsi] - 1;
        }
 
        pih = pirq_establish(gsi, evtchn, handler, arg, level,



Home | Main Index | Thread Index | Old Index