Page MenuHomeFreeBSD

D14042.id38852.diff
No OneTemporary

D14042.id38852.diff

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

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)

Event Timeline