RTEMS | iospace: Add iospace driver (!1243)
Aaron Nyholm (@eagleirony)
gitlab at rtems.org
Thu Jun 18 06:57:53 UTC 2026
Aaron Nyholm commented on a discussion on testsuites/libtests/iodev01/test_iodev.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_152725
> + sizeof( rtems_iodev )
> + );
> +
> + if ( tiodev.iodev == NULL ) {
> + return NULL;
> + }
> +
> + rtems_mutex_init( &tiodev.lock, "test_iodev" );
> + rtems_mutex_lock( &tiodev.lock );
> + tiodev.waiting = false;
> + rtems_mutex_unlock( &tiodev.lock );
> +
> + tiodev.regions[0].index = 0;
> + tiodev.regions[0].address = malloc(TEST_IODEV_REGION_SIZE);
> + if (tiodev.regions[0].address == NULL) {
> + rtems_iodev_destroy_unregistered( tiodev.iodev );
Yes it should, fixed this and other instances.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_152725
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260618/538975eb/attachment-0001.htm>
More information about the bugs
mailing list