summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-02-09 22:38:18 +0000
committermiod <miod@openbsd.org>2015-02-09 22:38:18 +0000
commitd8908eedbbe174c02bfcdd07eda9f21e00476452 (patch)
treef33022b72d18443133771e74c4a98126887efa11
parentcorrect copyright, upon approval from paul vixie via todd miller. the (diff)
downloadwireguard-openbsd-d8908eedbbe174c02bfcdd07eda9f21e00476452.tar.xz
wireguard-openbsd-d8908eedbbe174c02bfcdd07eda9f21e00476452.zip
Move consistency check within #ifdef DIAGNOSTIC
-rw-r--r--sys/arch/vax/vsa/asc_vsbus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/vax/vsa/asc_vsbus.c b/sys/arch/vax/vsa/asc_vsbus.c
index f52da75f5d7..8a64411f4a7 100644
--- a/sys/arch/vax/vsa/asc_vsbus.c
+++ b/sys/arch/vax/vsa/asc_vsbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asc_vsbus.c,v 1.16 2014/01/21 03:42:21 dlg Exp $ */
+/* $OpenBSD: asc_vsbus.c,v 1.17 2015/02/09 22:38:18 miod Exp $ */
/* $NetBSD: asc_vsbus.c,v 1.22 2001/02/04 20:36:32 ragge Exp $ */
/*-
@@ -424,9 +424,11 @@ asc_vsbus_dma_setup(struct ncr53c9x_softc *sc, caddr_t *addr, size_t *len,
} else {
asc->sc_flags |= ASC_FROMMEMORY;
}
+#ifdef DIAGNOSTIC
if ((vaddr_t) *asc->sc_dmaaddr < VM_MIN_KERNEL_ADDRESS)
panic("asc_vsbus_dma_setup: dma address (%p) outside of kernel",
*asc->sc_dmaaddr);
+#endif
NCR_DMA(("%s: start %d@%p,%d\n", sc->sc_dev.dv_xname,
(int)*asc->sc_dmalen, *asc->sc_dmaaddr, (asc->sc_flags & ASC_FROMMEMORY)));