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

Atomic write (LDAXR/STLXR) causes infinite loop on Cortex-A72

I have code which runs on Cortex-A72 (AArch64) and it disassembles to the following:



The problem is it enters infinite loop with stlxr/ldaxr and I have no idea how to debug or where to look at to resolve the issue.

I've read about exclusive access monitor in the ARNv8-A Reference Manual:



Could it be something related? I don't enable address translation and I don't initialize exclusive access monitor. Do I need to?
Any advice or help is highly appreciated. Thanks in advance!
0