rptun/rptun_ivshmem: rptun_ivshmem to be compliable with 32 bit arch
Fix the compile waring in 32 bit arch Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
f8ba836174
commit
fa761a6be7
@ -171,7 +171,7 @@ rptun_ivshmem_get_resource(FAR struct rptun_dev_s *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
priv->shmem->cmds = 0;
|
priv->shmem->cmds = 0;
|
||||||
priv->shmem->basem = (uint64_t)priv->shmem;
|
priv->shmem->basem = (uint64_t)(uintptr_t)priv->shmem;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -214,7 +214,7 @@ rptun_ivshmem_get_resource(FAR struct rptun_dev_s *dev)
|
|||||||
usleep(1000);
|
usleep(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->addrenv.va = (uint64_t)priv->shmem;
|
priv->addrenv.va = (uint64_t)(uintptr_t)priv->shmem;
|
||||||
priv->addrenv.pa = priv->shmem->basem;
|
priv->addrenv.pa = priv->shmem->basem;
|
||||||
priv->addrenv.size = priv->shmem_size;
|
priv->addrenv.size = priv->shmem_size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user