Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/arch/sparc64/sparc64 Pull up revision 1.43 (request...



details:   https://anonhg.NetBSD.org/src/rev/6abbb0edd387
branches:  netbsd-1-6
changeset: 530366:6abbb0edd387
user:      grant <grant%NetBSD.org@localhost>
date:      Thu Jun 19 02:26:02 2003 +0000

description:
Pull up revision 1.43 (requested by martin in ticket #1318):

Fix yet another inverted comparison.

diffstat:

 sys/arch/sparc64/sparc64/intr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 1738de70ffa8 -r 6abbb0edd387 sys/arch/sparc64/sparc64/intr.c
--- a/sys/arch/sparc64/sparc64/intr.c   Thu Jun 19 02:21:41 2003 +0000
+++ b/sys/arch/sparc64/sparc64/intr.c   Thu Jun 19 02:26:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.42 2002/05/06 19:19:48 eeh Exp $ */
+/*     $NetBSD: intr.c,v 1.42.4.1 2003/06/19 02:26:02 grant Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -276,9 +276,9 @@
                                                M_DEVBUF, M_NOWAIT);
                                /* Point the old IH at the new handler */
                                *nih = *q;
-                               q->ih_fun = intr_list_handler;
+                               nih->ih_next = NULL;
                                q->ih_arg = (void *)nih;
-                               nih->ih_next = NULL;
+                               q->ih_fun = intr_list_handler;
                        }
                        /* Add the ih to the head of the list */
                        ih->ih_next = (struct intrhand *)q->ih_arg;
@@ -298,7 +298,7 @@
                panic("intr_establish: bad intr number %x", ih->ih_number);
 
        /* If it's not shared, stick it in the intrhand list for that level. */
-       if (q != NULL) {
+       if (q == NULL) {
                for (p = &intrhand[level]; (q = *p) != NULL; p = &q->ih_next)
                        ;
                *p = ih;



Home | Main Index | Thread Index | Old Index