Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177668812
D55314.1794989767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D55314.1794989767.diff
View Options
diff --git a/sys/powerpc/powerpc/busdma_machdep.c b/sys/powerpc/powerpc/busdma_machdep.c
--- a/sys/powerpc/powerpc/busdma_machdep.c
+++ b/sys/powerpc/powerpc/busdma_machdep.c
@@ -71,15 +71,24 @@
bus_size_t maxsegsz, int flags, bus_dma_lock_t *lockfunc,
void *lockfuncarg, bus_dma_tag_t *dmat)
{
+ struct bus_dma_tag_common *tc;
+ int error;
/* Filters are no longer supported. */
if (filter != NULL || filterarg != NULL)
return (EINVAL);
-
- return bus_dma_bounce_impl.tag_create(parent, alignment,
- boundary, lowaddr, highaddr, maxsize, nsegments,
- maxsegsz, flags, lockfunc, lockfuncarg, dmat);
+ if (parent == NULL) {
+ error = bus_dma_bounce_impl.tag_create(parent, alignment,
+ boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz,
+ flags, lockfunc, lockfuncarg, dmat);
+ } else {
+ tc = (struct bus_dma_tag_common *)parent;
+ error = tc->impl->tag_create(parent, alignment,
+ boundary, lowaddr, highaddr, maxsize, nsegments, maxsegsz,
+ flags, lockfunc, lockfuncarg, dmat);
+ }
+ return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 8:16 AM (7 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41819684
Default Alt Text
D55314.1794989767.diff (1 KB)
Attached To
Mode
D55314: powerpc: create a tag with the parents implementation if supplied
Attached
Detach File
Event Timeline