Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107179165
D14042.id38852.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
690 B
Referenced Files
None
Subscribers
None
D14042.id38852.diff
View Options
Index: head/sys/dev/mpr/mpr.c
===================================================================
--- head/sys/dev/mpr/mpr.c
+++ head/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
Sun, Jan 12, 7:55 AM (19 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761335
Default Alt Text
D14042.id38852.diff (690 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