summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2006-02-04 18:01:15 +0000
committercognet <cognet@FreeBSD.org>2006-02-04 18:01:15 +0000
commit9e3a00153228ade18dd16caad96810c85df7fd80 (patch)
tree67fede5bd32523f93bdaee15b84f0f2df05f480a
parentedc138867c0702f0b1c1e69d34dc2575eefc99f9 (diff)
downloadFreeBSD-src-9e3a00153228ade18dd16caad96810c85df7fd80.zip
FreeBSD-src-9e3a00153228ade18dd16caad96810c85df7fd80.tar.gz
Don't forget to set the address of the next descriptor to 0 when we're
zeroing a physical page, or we could end up re-zeroing portions of memory we have zeroed before, which is clearly not wanted.
-rw-r--r--sys/arm/xscale/i80321/i80321_aau.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/xscale/i80321/i80321_aau.c b/sys/arm/xscale/i80321/i80321_aau.c
index 20b309a..38c4e95 100644
--- a/sys/arm/xscale/i80321/i80321_aau.c
+++ b/sys/arm/xscale/i80321/i80321_aau.c
@@ -183,6 +183,7 @@ aau_bzero(void *dst, int len, int flags)
desc = sc->aauring[0].desc;
if (flags & IS_PHYSICAL) {
desc->local_addr = (vm_paddr_t)dst;
+ desc->next_desc = 0;
desc->count = len;
desc->descr_ctrl = 2 << 1 | 1 << 31; /* Fill, enable dest write */
bus_dmamap_sync(sc->dmatag, sc->aauring[0].map,
OpenPOWER on IntegriCloud