1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Honor the boundary of the busdma tag when allocating bounce pages.

This was fixed in revision 1.5 of alpha/alpha/busdma_machdep.c and
was never fixed in other busdma backends using bounce pages.
This commit is contained in:
Maxime Henrion 2003-07-01 16:54:54 +00:00
parent 79501b66a7
commit 4813f72a9b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117129
3 changed files with 3 additions and 3 deletions

View File

@ -816,7 +816,7 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
M_NOWAIT, 0ul,
dmat->lowaddr,
PAGE_SIZE,
0);
dmat->boundary);
mtx_unlock(&Giant);
if (bpage->vaddr == 0) {
free(bpage, M_DEVBUF);

View File

@ -818,7 +818,7 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
M_NOWAIT, 0ul,
dmat->lowaddr,
PAGE_SIZE,
0);
dmat->boundary);
mtx_unlock(&Giant);
if (bpage->vaddr == 0) {
free(bpage, M_DEVBUF);

View File

@ -872,7 +872,7 @@ alloc_bounce_pages(bus_dma_tag_t dmat, u_int numpages)
M_NOWAIT, 0ul,
dmat->lowaddr,
PAGE_SIZE,
0);
dmat->boundary);
mtx_unlock(&Giant);
if (bpage->vaddr == NULL) {
free(bpage, M_DEVBUF);