Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/ic/ncr53c9x.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/ic/ncr53c9x.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.143 retrieving revision 1.144 diff -u -p -r1.143 -r1.144 --- src/sys/dev/ic/ncr53c9x.c 2011/07/31 18:39:00 1.143 +++ src/sys/dev/ic/ncr53c9x.c 2012/03/10 20:54:20 1.144 @@ -1,4 +1,4 @@ -/* $NetBSD: ncr53c9x.c,v 1.143 2011/07/31 18:39:00 jakllsch Exp $ */ +/* $NetBSD: ncr53c9x.c,v 1.144 2012/03/10 20:54:20 mrg Exp $ */ /*- * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.143 2011/07/31 18:39:00 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.144 2012/03/10 20:54:20 mrg Exp $"); #include #include @@ -530,6 +530,9 @@ ncr53c9x_init(struct ncr53c9x_softc *sc, sc->sc_msgpriq = sc->sc_msgout = sc->sc_msgoutq = 0; sc->sc_phase = sc->sc_prevphase = INVALID_PHASE; + /* XXXSMP scsipi */ + KERNEL_LOCK(1, curlwp); + for (r = 0; r < sc->sc_ntarg; r++) { struct ncr53c9x_tinfo *ti = &sc->sc_tinfo[r]; /* XXX - config flags per target: low bits: no reselect; high bits: no synch */ @@ -559,6 +562,9 @@ ncr53c9x_init(struct ncr53c9x_softc *sc, /* Notify upper layer */ scsipi_async_event(&sc->sc_channel, ASYNC_EVENT_RESET, NULL); + + /* XXXSMP scsipi */ + KERNEL_UNLOCK_ONE(curlwp); } /*