Found the solution:
void mp_rendezvous_no_intrs(void (*action_func)(void *), void *arg)
This will run function action_func with argument arg on all cores.
You can find the source code of this function here: http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/osfmk/i386/mp.c