RTEMS | bsp/aarch64/raspberrypi: Add Mailbox Support (!915)

Shaunak Datar (@skdatar) gitlab at rtems.org
Tue Jan 27 14:29:13 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_140026

 > +  while (BCM2835_REG(BCM2711_MBOX_STATUS) & BCM2711_MBOX_FULL) {
 > +  }
 > +
 > +  BCM2835_REG(BCM2711_MBOX_WRITE) =
 > +      (data & MBOX_MAIL_DATA_MASK) | (channel & MBOX_MAIL_CHANNEL_MASK);
 > +}
 > +
 > +uint32_t rpi_mbox_read(bcm2711_mbox_channel channel) {
 > +  uint32_t data;
 > +  while (1) {
 > +    while (BCM2835_REG(BCM2711_MBOX_STATUS) & BCM2711_MBOX_EMPTY) {
 > +    }
 > +    data = BCM2835_REG(BCM2711_MBOX_READ);
 > +
 > +    if ((data & MBOX_MAIL_CHANNEL_MASK) == channel) {
 > +      return data & MBOX_MAIL_DATA_MASK;

the `while(1)` loop is not needed, so I have removed that

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_140026
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/20260127/4a7d39fa/attachment-0001.htm>


More information about the bugs mailing list