rpmsg_virtio_ivshmem.c: fix VIRTIO_RPMSG_F_BUFSZ not used caused restart err
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
This commit is contained in:
parent
d96fe98591
commit
3ca717ef4a
@ -149,8 +149,7 @@ rpmsg_virtio_ivshmem_get_resource(FAR struct rpmsg_virtio_s *dev)
|
|||||||
memset(priv->shmem, 0, priv->shmem_size);
|
memset(priv->shmem, 0, priv->shmem_size);
|
||||||
rsc->rpmsg_vdev.id = VIRTIO_ID_RPMSG;
|
rsc->rpmsg_vdev.id = VIRTIO_ID_RPMSG;
|
||||||
rsc->rpmsg_vdev.dfeatures = 1 << VIRTIO_RPMSG_F_NS |
|
rsc->rpmsg_vdev.dfeatures = 1 << VIRTIO_RPMSG_F_NS |
|
||||||
1 << VIRTIO_RPMSG_F_ACK |
|
1 << VIRTIO_RPMSG_F_ACK;
|
||||||
1 << VIRTIO_RPMSG_F_BUFSZ;
|
|
||||||
rsc->rpmsg_vdev.config_len = sizeof(struct fw_rsc_config);
|
rsc->rpmsg_vdev.config_len = sizeof(struct fw_rsc_config);
|
||||||
rsc->rpmsg_vdev.num_of_vrings = 2;
|
rsc->rpmsg_vdev.num_of_vrings = 2;
|
||||||
rsc->rpmsg_vring0.da = 0;
|
rsc->rpmsg_vring0.da = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user