Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133113458
D14042.id38423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D14042.id38423.diff
View Options
Index: sys/dev/mpr/mpr.c
===================================================================
--- sys/dev/mpr/mpr.c
+++ sys/dev/mpr/mpr.c
@@ -2763,7 +2763,7 @@
prp_entry_phys = prp_page_phys;
/* Get physical address and length of the data buffer. */
- paddr = (bus_addr_t)data;
+ paddr = (bus_addr_t)(uintptr_t)data;
if (data_in_sz)
length = data_in_sz;
else
@@ -2947,7 +2947,7 @@
else if ((buff_len > (PAGE_SIZE * 4)) &&
(buff_len <= (PAGE_SIZE * 5)) )
{
- msg_phys = (uint64_t *)segs[0].ds_addr;
+ msg_phys = (uint64_t *)(uintptr_t)segs[0].ds_addr;
first_page_offset =
((uint32_t)(uint64_t)(uintptr_t)msg_phys &
page_mask);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 2:19 AM (4 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24113926
Default Alt Text
D14042.id38423.diff (675 B)
Attached To
Mode
D14042: Minimal changes for MPR to build on architectures with physical addresses larger than virtual
Attached
Detach File
Event Timeline
Log In to Comment