RTEMS | bsp/aarch64/raspberrypi: Add support for DMA (!662)
Kinsey Moore (@opticron)
gitlab at rtems.org
Mon Aug 18 17:15:40 UTC 2025
Kinsey Moore started a new discussion on bsps/aarch64/raspberrypi/dma/raspberrypi-dma.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/662#note_128957
> + ) = CS_WAIT_FOR_OUTSTANDING_WRITES | CS_PANIC_PRIORITY_SHIFT |
> + CS_PRIORITY_SHIFT;
> + BCM2835_REG( base_address + CS_OFFSET ) |= CS_ACTIVE;
> + return RTEMS_SUCCESSFUL;
> +}
> +
> +rtems_status_code rpi_dma_wait( rpi_dma_channel channel )
> +{
> + uint32_t base_address = get_base_address(channel);
> + if(!base_address){
> + return RTEMS_INVALID_NUMBER;
> + }
> + while (( BCM2835_REG( base_address + CS_OFFSET ) & CS_ACTIVE ));
> +
> + if ( BCM2835_REG( base_address + CS_OFFSET ) & CS_ERROR ) {
> + return RTEMS_UNSATISFIED;
These error return paths do not free the control block.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/662#note_128957
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/20250818/f8ceca70/attachment-0001.htm>
More information about the bugs
mailing list