mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
Don't page-align the physical address when calling PHYS_TO_VM_PAGE().
M busdma_bounce.c
This commit is contained in:
parent
c223ad05c4
commit
012cf46f07
1 changed files with 2 additions and 1 deletions
|
|
@ -1006,7 +1006,8 @@ add_bounce_page(bus_dma_tag_t dmat, bus_dmamap_t map, vm_offset_t vaddr,
|
|||
bpage->busaddr |= addr & PAGE_MASK;
|
||||
}
|
||||
bpage->datavaddr = vaddr;
|
||||
bpage->datapage = PHYS_TO_VM_PAGE(addr & ~PAGE_MASK);
|
||||
/* PHYS_TO_VM_PAGE() will truncate unaligned addresses. */
|
||||
bpage->datapage = PHYS_TO_VM_PAGE(addr);
|
||||
bpage->dataoffs = addr & PAGE_MASK;
|
||||
bpage->datacount = size;
|
||||
STAILQ_INSERT_TAIL(&(map->bpages), bpage, links);
|
||||
|
|
|
|||
Loading…
Reference in a new issue