global int a = 0; global int b = 0; CPU0 : str #0x1, a DMB str #0x1, b CPU1 : WAIT(b==1) ; wait on flag DMB ldr r0, a