summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/amd/amd.c4
-rw-r--r--sys/pci/amd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c
index 049acc6..7130755 100644
--- a/sys/dev/amd/amd.c
+++ b/sys/dev/amd/amd.c
@@ -694,7 +694,7 @@ amd_poll(struct cam_sim * psim)
static u_int8_t *
phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
{
- int dataPtr;
+ intptr_t dataPtr;
struct ccb_scsiio *pcsio;
u_int8_t i;
struct amd_sg * pseg;
@@ -702,7 +702,7 @@ phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
dataPtr = 0;
pcsio = &pSRB->pccb->csio;
- dataPtr = (int) pcsio->data_ptr;
+ dataPtr = (intptr_t) pcsio->data_ptr;
pseg = pSRB->SGsegment;
for (i = 0; i < pSRB->SGIndex; i++) {
dataPtr += (int) pseg->SGXLen;
diff --git a/sys/pci/amd.c b/sys/pci/amd.c
index 049acc6..7130755 100644
--- a/sys/pci/amd.c
+++ b/sys/pci/amd.c
@@ -694,7 +694,7 @@ amd_poll(struct cam_sim * psim)
static u_int8_t *
phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
{
- int dataPtr;
+ intptr_t dataPtr;
struct ccb_scsiio *pcsio;
u_int8_t i;
struct amd_sg * pseg;
@@ -702,7 +702,7 @@ phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
dataPtr = 0;
pcsio = &pSRB->pccb->csio;
- dataPtr = (int) pcsio->data_ptr;
+ dataPtr = (intptr_t) pcsio->data_ptr;
pseg = pSRB->SGsegment;
for (i = 0; i < pSRB->SGIndex; i++) {
dataPtr += (int) pseg->SGXLen;
OpenPOWER on IntegriCloud