Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/vme Fix the IPL comparison. The previous vers...



details:   https://anonhg.NetBSD.org/src/rev/86b98364ddbc
branches:  trunk
changeset: 471921:86b98364ddbc
user:      leo <leo%NetBSD.org@localhost>
date:      Thu Apr 15 09:15:29 1999 +0000

description:
Fix the IPL comparison. The previous version was plain wrong and caused
random panics in the pool allocator.

diffstat:

 sys/arch/atari/vme/if_le_vme.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0899322d4ed1 -r 86b98364ddbc sys/arch/atari/vme/if_le_vme.c
--- a/sys/arch/atari/vme/if_le_vme.c    Thu Apr 15 05:01:04 1999 +0000
+++ b/sys/arch/atari/vme/if_le_vme.c    Thu Apr 15 09:15:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le_vme.c,v 1.9 1998/12/10 15:55:25 leo Exp $        */
+/*     $NetBSD: if_le_vme.c,v 1.10 1999/04/15 09:15:29 leo Exp $       */
 
 /*-
  * Copyright (c) 1998 maximum entropy.  All rights reserved.
@@ -301,7 +301,7 @@
        struct lance_softc      *sc = &lesc->sc_am7990.lsc;
        u_int16_t               csr0;
 
-       if ((sr & PSL_IPL) < IPL_NET)
+       if ((sr & PSL_IPL) < (IPL_NET & PSL_IPL))
                am7990_intr(sc);
        else {
                sc->sc_saved_csr0 = csr0 = lerdcsr(sc, LE_CSR0);



Home | Main Index | Thread Index | Old Index