mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Add casts to unbreak the i386 PAE build for the mps(4) driver.
MFC after: 3 days Prompted by: Garrett Cooper
This commit is contained in:
parent
9c87d811eb
commit
0e28d282b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241145
|
@ -2730,7 +2730,7 @@ mpssas_send_smpcmd(struct mpssas_softc *sassc, union ccb *ccb, uint64_t sasaddr)
|
|||
bus_dma_segment_t *req_sg;
|
||||
|
||||
req_sg = (bus_dma_segment_t *)ccb->smpio.smp_request;
|
||||
request = (uint8_t *)req_sg[0].ds_addr;
|
||||
request = (uint8_t *)(uintptr_t)req_sg[0].ds_addr;
|
||||
} else
|
||||
request = ccb->smpio.smp_request;
|
||||
|
||||
|
@ -2738,7 +2738,7 @@ mpssas_send_smpcmd(struct mpssas_softc *sassc, union ccb *ccb, uint64_t sasaddr)
|
|||
bus_dma_segment_t *rsp_sg;
|
||||
|
||||
rsp_sg = (bus_dma_segment_t *)ccb->smpio.smp_response;
|
||||
response = (uint8_t *)rsp_sg[0].ds_addr;
|
||||
response = (uint8_t *)(uintptr_t)rsp_sg[0].ds_addr;
|
||||
} else
|
||||
response = ccb->smpio.smp_response;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue