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.
This commit is contained in:
Olivier Houchard 2006-02-04 18:01:15 +00:00
parent 1107d45356
commit 0cc56a19e1

View File

@ -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,