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:
parent
1107d45356
commit
0cc56a19e1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user