summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-08-09 12:59:38 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-08-09 12:59:38 +0000
commitdcb650d4cc206858fde0942e00b3076acf991c7d (patch)
tree4d7cd9fafca5e867af7fce8fdbf43a0d22ecff4c /sys/dev
parent433b380d7913ccc697a04fe531eefa875d839688 (diff)
Make this compile when SEA_ASSEMBLER is not defined.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/seagate.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/isa/seagate.c b/sys/dev/isa/seagate.c
index 51ba1920353..1a30f6f66b8 100644
--- a/sys/dev/isa/seagate.c
+++ b/sys/dev/isa/seagate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: seagate.c,v 1.27 2009/02/16 21:19:07 miod Exp $ */
+/* $OpenBSD: seagate.c,v 1.28 2009/08/09 12:59:37 jsg Exp $ */
/*
* ST01/02, Future Domain TMC-885, TMC-950 SCSI driver
@@ -1275,9 +1275,9 @@ sea_information_transfer(struct sea_softc *sea)
if ((tmp & PH_MASK) != phase)
break;
if (!(phase & STAT_IO)) {
+#ifdef SEA_ASSEMBLER
int block = BLOCK_SIZE;
void *a = sea->maddr_dr;
-#ifdef SEA_ASSEMBLER
asm("shr $2, %%ecx\n\t\
cld\n\t\
rep\n\t\
@@ -1289,15 +1289,16 @@ sea_information_transfer(struct sea_softc *sea)
"2" (a),
"1" (block) );
#else
+ int count;
for (count = 0;
count < BLOCK_SIZE;
count++)
DATA = *(scb->data++);
#endif
} else {
+#ifdef SEA_ASSEMBLER
int block = BLOCK_SIZE;
void *a = sea->maddr_dr;
-#ifdef SEA_ASSEMBLER
asm("shr $2, %%ecx\n\t\
cld\n\t\
rep\n\t\
@@ -1308,6 +1309,7 @@ sea_information_transfer(struct sea_softc *sea)
"2" (a) ,
"1" (block) );
#else
+ int count;
for (count = 0;
count < BLOCK_SIZE;
count++)