On 25/07/16 14:17, fedor...@mail.ru wrote: > I build for arm cpu. How write this function? Where I can see example > implementation? GCC builded with multilib support.
If your ARM cpu has only one core, the function can be empty. If it has more than one core, then you must tell GCC which model of ARM it is and GCC will generate the appropriate instruction. It's a DMB instruction. Andrew.