mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
virtio-mmio: use nuttx implemented io operation instead libmetal's
Openamp/libmetal's metal io operation used the atomic operation, but in QEMU 8.1.2, the risc-v IO region is not allow to use atomic instruction in SMP case. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
90cf37a179
commit
af39ee49d8
@@ -759,9 +759,9 @@ static int virtio_mmio_init_device(FAR struct virtio_mmio_device_s *vmdev,
|
|||||||
vmdev->shm_phy = (metal_phys_addr_t)0;
|
vmdev->shm_phy = (metal_phys_addr_t)0;
|
||||||
vmdev->cfg_phy = (metal_phys_addr_t)regs;
|
vmdev->cfg_phy = (metal_phys_addr_t)regs;
|
||||||
metal_io_init(&vmdev->shm_io, NULL, &vmdev->shm_phy,
|
metal_io_init(&vmdev->shm_io, NULL, &vmdev->shm_phy,
|
||||||
SIZE_MAX, UINT_MAX, 0, NULL);
|
SIZE_MAX, UINT_MAX, 0, metal_io_get_ops());
|
||||||
metal_io_init(&vmdev->cfg_io, regs, &vmdev->cfg_phy,
|
metal_io_init(&vmdev->cfg_io, regs, &vmdev->cfg_phy,
|
||||||
SIZE_MAX, UINT_MAX, 0, NULL);
|
SIZE_MAX, UINT_MAX, 0, metal_io_get_ops());
|
||||||
|
|
||||||
/* Init the virtio device */
|
/* Init the virtio device */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user