Kudos and thanks to Mark Brinicombe (mark@causality.com): bug in waiting for

RISC_INT to be set after stuffing a mailbox.
This commit is contained in:
mjacob 1997-07-28 18:56:36 +00:00
parent 716c89ccb2
commit 002c218565
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isp.c,v 1.8 1997/06/22 19:57:06 mjacob Exp $ */
/* $NetBSD: isp.c,v 1.9 1997/07/28 18:56:36 mjacob Exp $ */
/*
* Machine Independent (well, as best as possible)
@ -986,7 +986,7 @@ isp_mboxcmd(isp, mbp)
* Wait until RISC int is set
*/
loops = MBOX_DELAY_COUNT;
while ((ISP_READ(isp, BIU_ISR) & BIU_ISR_RISC_INT) != 0) {
while ((ISP_READ(isp, BIU_ISR) & BIU_ISR_RISC_INT) == 0) {
delay(100);
if (--loops < 0) {
printf("%s: isp_mboxcmd timeout #2\n", isp->isp_name);