Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102618933
D38920.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
640 B
Referenced Files
None
Subscribers
None
D38920.diff
View Options
diff --git a/sys/arm64/arm64/ofw_machdep.c b/sys/arm64/arm64/ofw_machdep.c
--- a/sys/arm64/arm64/ofw_machdep.c
+++ b/sys/arm64/arm64/ofw_machdep.c
@@ -43,7 +43,8 @@
{
bus_addr_t addr;
bus_size_t size;
- int err;
+ phandle_t parent;
+ int err, flags;
err = ofw_reg_to_paddr(dev, regno, &addr, &size, NULL);
if (err != 0)
@@ -54,5 +55,10 @@
if (sz != NULL)
*sz = size;
- return (bus_space_map(*tag, addr, size, 0, handle));
+ flags = 0;
+ parent = OF_parent(dev);
+ if (parent > 0 && OF_hasprop(parent, "nonposted-mmio"))
+ flags |= BUS_SPACE_MAP_NONPOSTED;
+
+ return (bus_space_map(*tag, addr, size, flags, handle));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 9:41 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14648399
Default Alt Text
D38920.diff (640 B)
Attached To
Mode
D38920: arm64: ofw: respect the nonposted-mmio prop in OF_decode_addr()
Attached
Detach File
Event Timeline
Log In to Comment