dmamatch never added in the offset for the dma registers to the VA,
and thus probed the wrong address on the 4/300 (but it worked because it was probing the esp0 registers!). now that bus_tmp() adds the offset in for us [as of obio 1.19] i discoved that a byte access to the dma registers is not allowed. so, i've change probeget to use a word access.
This commit is contained in:
parent
afb262e8da
commit
b5ddd8431d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dma.c,v 1.15 1995/12/18 23:58:31 pk Exp $ */
|
||||
/* $NetBSD: dma.c,v 1.16 1996/01/12 22:03:39 chuck Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Peter Galbavy. All rights reserved.
|
||||
|
@ -98,7 +98,7 @@ dmamatch(parent, vcf, aux)
|
|||
if (ca->ca_bustype == BUS_SBUS)
|
||||
return (1);
|
||||
ra->ra_len = NBPG;
|
||||
return (probeget(ra->ra_vaddr, 1) != -1);
|
||||
return (probeget(ra->ra_vaddr, 4) != -1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue