int main(void){ __asm__ __volatile__ ( "MCR p15, 0, Rd, c7, c0, 4" );}
Hi,Replace 'Rd' with the actual destination register - R0, R1, etc.HTH.
__asm__ __volatile__ ( "MCR p15, 0, R0, c7, c0, 4" );
void wfi(void){ __asm__ __volatile__ ("MCR p15,0,%0,c7,c0,4" ::"r"(0));}
For the instruction in question, it doesn't really matter which register you use; though you can let the compiler automatically select an arbitrary register containing the value zero, by using:void wfi(void){ __asm__ __volatile__ ("MCR p15,0,%0,c7,c0,4" ::"r"(0));}hths.