From cca8aefe718d5fbcfddaa9ce3d3d086c853679a4 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 9 Feb 2015 22:38:19 +0000 Subject: Move consistency check within #ifdef DIAGNOSTIC --- sys/arch/vax/vsa/asc_vsbus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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))); -- cgit v1.2.3