search for: __wfi

Displaying 1 result from an estimated 1 matches for "__wfi".

Did you mean: __sti
2014 Jun 19
6
[LLVMdev] [RFC] Add compiler scheduling barriers
...asSideEffects for memory barrier and isTerminator for full barrier) and a pseudo-instruction elimination pass after the scheduling pass. What do people think of this idea? Cheers, Yi ------ [1] A piece of code that requires such behaviour is: Data_array[n] = x; // memory access __DSB(); __WFI(); // This cannot get executed until DSB completed Moving WFI to before DSB will cause wrong behaviour. Code is taken from DAI0321A 4.14, (http://infocenter.arm.com/help/topic/com.arm.doc.dai0321a/DAI0321A_programming_guide_memory_barriers_for_m_profile.pdf)