Shaunak Datar commented on a discussion on 
bsps/aarch64/raspberrypi/start/mailbox.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_139008

 > +    }
 > +
 > +    BCM2835_REG(BCM2711_MBOX_WRITE) = (data & MBOX_MAIL_DATA_MASK) | 
 > (channel & MBOX_MAIL_CHANNEL_MASK);
 > +
 > +}
 > +
 > +uint32_t rpi_mbox_read(uint8_t 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;
 > +        }

Added a enum to fix this

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/915#note_139008
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to