summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-07-06 18:31:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-07-06 18:31:47 +0000
commit166d07a27c90174b03555c88f521cd2a86789927 (patch)
tree0f0df61b89c8ab766ee57fe259c92e64e024daee /sys/arch/vax
parent40493fc1b7867754041e88ecec19087f49fb0fcd (diff)
Forgot to commit this file during the a.out->ELF transition.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vsa/hdc9224.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c
index 1f797c464c9..0371a6d8804 100644
--- a/sys/arch/vax/vsa/hdc9224.c
+++ b/sys/arch/vax/vsa/hdc9224.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hdc9224.c,v 1.39 2013/06/11 16:42:13 deraadt Exp $ */
+/* $OpenBSD: hdc9224.c,v 1.40 2013/07/06 18:31:46 miod Exp $ */
/* $NetBSD: hdc9224.c,v 1.16 2001/07/26 15:05:09 wiz Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -198,7 +198,7 @@ struct cfdriver hd_cd = {
/* At least 0.7 uS between register accesses */
static int hd_dmasize, inq = 0; /* XXX should be in softc... but only 1 ctrl */
static int u;
-#define WAIT asm("movl _u,_u;movl _u,_u;movl _u,_u; movl _u,_u")
+#define WAIT asm("movl %0,%0;movl %0,%0;movl %0,%0; movl %0,%0" :: "m"(u))
#define HDC_WREG(x) *(volatile char *)(sc->sc_regs) = (x)
#define HDC_RREG *(volatile char *)(sc->sc_regs)