Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145821786
D55314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D55314.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, Feb 25, 10:25 PM (18 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28823163
Default Alt Text
D55314.diff (1 KB)
Attached To
Mode
D55314: powerpc: create a tag with the parents implementation if supplied
Attached
Detach File
Event Timeline
Log In to Comment