Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Matthew Jacob <mjacob@netbsd.org>
List: source-changes
Date: 05/16/2001 06:55:16
Module Name:	syssrc
Committed By:	mjacob
Date:		Wed May 16 03:55:16 UTC 2001

Modified Files:
	syssrc/sys/dev/ic: isp_netbsd.h

Log Message:
Long overdue- put locks on the usage of the mailbox command stuff. This
keeps us from stomping on ourselves.

Say we're in the middle of re-evaluating a loop (and sleeping) when a
command completes, or a timer refires, and this *other* thread decides
*it* wants to start re-evaluating the loop. Bad news.

We have to be a bit careful- if we can't acquire the MBOX semaphore at
interrupt level, we will simulate a host interface error. This is a bit
of a temp workaround. There's some work underway driven by a NetBSD
commercial user that will try and force most mailbox stuff into a
part A/part B interrupt driven model.


To generate a diff of this commit:
cvs rdiff -r1.40 -r1.41 syssrc/sys/dev/ic/isp_netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.