diff --git a/examples/virtio/include/serial_config.h b/examples/virtio/include/serial_config.h index af3ff55f..b41996a7 100644 --- a/examples/virtio/include/serial_config.h +++ b/examples/virtio/include/serial_config.h @@ -77,7 +77,7 @@ static inline void serial_virt_queue_init_sys(char *pd_name, serial_queue_handle serial_queue_init(&cli_queue_handle[1], (serial_queue_t *)(cli_queue + SERIAL_QUEUE_SIZE), SERIAL_RX_DATA_REGION_SIZE_CLI1, (char *)(cli_data + SERIAL_RX_DATA_REGION_SIZE_CLI0)); serial_queue_init(&cli_queue_handle[2], (serial_queue_t *)(cli_queue + 2 * SERIAL_QUEUE_SIZE), - SERIAL_RX_DATA_REGION_SIZE_CLI2, + SERIAL_RX_DATA_REGION_SIZE_CLI2, (char *)(cli_data + SERIAL_RX_DATA_REGION_SIZE_CLI0 + SERIAL_RX_DATA_REGION_SIZE_CLI1)); } else if (!sddf_strcmp(pd_name, SERIAL_VIRT_TX_NAME)) { serial_queue_init(cli_queue_handle, (serial_queue_t *) cli_queue, SERIAL_TX_DATA_REGION_SIZE_CLI0, (char *)cli_data);