diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-09 22:38:19 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-02-09 22:38:19 +0000 |
commit | cca8aefe718d5fbcfddaa9ce3d3d086c853679a4 (patch) | |
tree | 52f35adc14e0fdab110efc76949490f6de632acd /sys/arch/vax | |
parent | 10e19270b3fd5929bbf1985157d16fac83ce9ef2 (diff) |
Move consistency check within #ifdef DIAGNOSTIC
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/vsa/asc_vsbus.c | 4 |
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))); |