summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1996-05-30 14:31:08 +0000
committergibbs <gibbs@FreeBSD.org>1996-05-30 14:31:08 +0000
commitb0eeb8b7adc1cb8efe14a4984afae460eb700257 (patch)
treef69dda4ab937bc5c9ce0c5d3ec4bfe96ace3c9cb /sys/dev/aic7xxx
parenta28a78041a78bc05529f434182738904b6d7a79c (diff)
downloadFreeBSD-src-b0eeb8b7adc1cb8efe14a4984afae460eb700257.zip
FreeBSD-src-b0eeb8b7adc1cb8efe14a4984afae460eb700257.tar.gz
Fix regression. It seems that you need at least one instruction between
seeing SPIORDY and checking for PHASEMIS. My last change turned out to be less cosmetic then I thought. Pointed out by: Satoshi Asami <asami@cs.berkeley.edu>, Faried Nawaz <fn@pain.csrv.uidaho.edu
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/aic7xxx.seq6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx.seq b/sys/dev/aic7xxx/aic7xxx.seq
index 30b8380..36f88b4 100644
--- a/sys/dev/aic7xxx/aic7xxx.seq
+++ b/sys/dev/aic7xxx/aic7xxx.seq
@@ -39,7 +39,7 @@
*
*-M************************************************************************/
-VERSION AIC7XXX_SEQ_VER "$Id: aic7xxx.seq,v 1.37 1996/05/27 23:16:55 gibbs Exp $"
+VERSION AIC7XXX_SEQ_VER "$Id: aic7xxx.seq,v 1.38 1996/05/30 07:18:39 gibbs Exp $"
#if defined(__NetBSD__)
#include "../../../../dev/ic/aic7xxxreg.h"
@@ -500,9 +500,9 @@ p_mesgout_start:
*/
p_mesgout_loop:
test SSTAT0,SPIORDY jz p_mesgout_loop
- test SSTAT1,PHASEMIS jnz p_mesgout_phasemis
cmp DINDEX,1 jne p_mesgout_outb /* last byte? */
mvi CLRSINT1,CLRATNO /* drop ATN */
+ test SSTAT1,PHASEMIS jnz p_mesgout_phasemis
p_mesgout_outb:
dec DINDEX
or CLRSINT0, CLRSPIORDY
@@ -867,9 +867,9 @@ inb_next:
mov NONE,SCSIDATL /*dummy read from latch to ACK*/
inb_next_wait:
test SSTAT0,SPIORDY jz inb_next_wait /* wait for next byte */
- test SSTAT1,PHASEMIS jnz mesgin_phasemis
inb_first:
mov DINDEX,SINDEX
+ test SSTAT1,PHASEMIS jnz mesgin_phasemis
mov DINDIR,SCSIBUSL ret /*read byte directly from bus*/
inb_last:
mov NONE,SCSIDATL ret /*dummy read from latch to ACK*/
OpenPOWER on IntegriCloud