diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-09-10 07:00:28 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-09-10 07:00:28 +0000 |
| commit | e4793b0edaf216911b7ff37cf7c3917d67c63ede (patch) | |
| tree | 649f472f54f5038182411b9d66ff143b1362ab11 /sys/sparc64 | |
| parent | 1754e424a62999ea406394721e371b20c187c66d (diff) | |
Notes
Diffstat (limited to 'sys/sparc64')
| -rw-r--r-- | sys/sparc64/sparc64/bus_machdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/bus_machdep.c b/sys/sparc64/sparc64/bus_machdep.c index 47f41839cd63..2bdf01c26cc5 100644 --- a/sys/sparc64/sparc64/bus_machdep.c +++ b/sys/sparc64/sparc64/bus_machdep.c @@ -246,7 +246,7 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, newtag->dt_lockfunc = dflt_lock; newtag->dt_lockfuncarg = NULL; } - + newtag->dt_segments = NULL; /* Take into account any restrictions imposed by our parent tag */ @@ -263,6 +263,10 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment, atomic_add_int(&parent->dt_ref_count, 1); } + if (newtag->dt_boundary > 0) + newtag->dt_maxsegsz = ulmin(newtag->dt_maxsegsz, + newtag->dt_boundary); + *dmat = newtag; return (0); } |
