From e2d6f35c09f9a086b6d4adad3efcc257a676902b Mon Sep 17 00:00:00 2001 From: gwr Date: Sun, 26 Mar 1995 19:23:12 +0000 Subject: [PATCH] The splbio()/splx(s) is now appropriate even if SCSI_POLL is set. --- sys/arch/sun3/dev/si.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/arch/sun3/dev/si.c b/sys/arch/sun3/dev/si.c index f564f9b78e56..7b3fb081ddd5 100644 --- a/sys/arch/sun3/dev/si.c +++ b/sys/arch/sun3/dev/si.c @@ -1,4 +1,4 @@ -/* $NetBSD: si.c,v 1.14 1995/01/24 05:55:50 gwr Exp $ */ +/* $NetBSD: si.c,v 1.15 1995/03/26 19:23:12 gwr Exp $ */ /* * Copyright (C) 1994 Adam Glass, Gordon W. Ross @@ -281,9 +281,7 @@ ncr5380_scsi_cmd(struct scsi_xfer *xs) xs->flags |= INUSE; } - /* At autoconfig time, do NOT lower the spl! */ - if ((flags & SCSI_POLL) == 0) - s = splbio(); + s = splbio(); if ( flags & SCSI_RESET ) { printf("flags & SCSIRESET.\n"); @@ -295,8 +293,7 @@ ncr5380_scsi_cmd(struct scsi_xfer *xs) scsi_done(xs); } - if ((flags & SCSI_POLL) == 0) - splx(s); + splx(s); switch(r) { case COMPLETE: