From 0cc56a19e1e05195a2bc8f7374b253afc03fbf9a Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Sat, 4 Feb 2006 18:01:15 +0000 Subject: [PATCH] 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. --- sys/arm/xscale/i80321/i80321_aau.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/arm/xscale/i80321/i80321_aau.c b/sys/arm/xscale/i80321/i80321_aau.c index 20b309aaf1ed..38c4e95f5ada 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,