This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Barrier after access to memory mapped register?

Hi,

Iam wondering if it makes sense to have a memory barrier after access to a memory mapped register. I looking at a driver, unfortunately not open source, that has a memory barrier after a read from the interrupt status register of the peripheral when processing the interrupt. I understand the use of the barrier when accessing main RAM, but does it make sense for registers?

CPU: A53 aarch64

Thanks

Parents
  • If the second access following the register read is to a "normal" memory then it make perfect sense. 

    The barrier prevents the processor from issuing the second access too early (e.g. the address location could be updated by an Interrupt Service Routine related to the first access).

    regards,

    Joseph

Reply
  • If the second access following the register read is to a "normal" memory then it make perfect sense. 

    The barrier prevents the processor from issuing the second access too early (e.g. the address location could be updated by an Interrupt Service Routine related to the first access).

    regards,

    Joseph

Children