RTEMS | bsp/aarch64/raspberrypi: Add Mailbox Support (!915)
Shaunak Datar (@skdatar)
gitlab at rtems.org
Fri Jan 16 20:04:27 UTC 2026
Shaunak Datar commented on a discussion on bsps/aarch64/raspberrypi/start/mailbox.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_139002
> +}
> +
> +rtems_status_code rpi_mbox_process(mbox_property_message* msg){
> + rtems_cache_flush_multiple_data_lines(msg, msg->header.size);
> + rpi_mbox_write(PROPERTY_TAGS_ARM_TO_VC, (uint32_t)(uintptr_t)msg);
> + rpi_mbox_read(PROPERTY_TAGS_ARM_TO_VC);
> + rtems_cache_invalidate_multiple_data_lines(msg, msg->header.size);
> + return (msg->header.req_resp == BCM2711_MBOX_RESPONSE)? RTEMS_SUCCESSFUL : RTEMS_IO_ERROR;
> +}
> +
> +rtems_status_code rpi_mbox_property_message_init( mbox_property_message *msg, size_t buffer_size, const mbox_property_tag_metadata *tags, unsigned int tag_count ){
> + uintptr_t head = (uintptr_t)msg->buffer;
> + uintptr_t end = (uintptr_t)(msg) + buffer_size;
> +
> + for( unsigned int i = 0; i < tag_count; i++ ){
> + if(head + mbox_tag_total_size(tags[i].value_size) > end){
Made the required formatting changes
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_139002
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/20260116/78d12a02/attachment-0001.htm>
More information about the bugs
mailing list