Set program counter

Hi,
how can i set program counter from variable in C code?

void func(void)
{
  uint32_t XADDR;
  XADDR = __current_pc();
  ...
  // need set PC from XADDR
  // msr pc, XADDR not compiled
}

Thanks in advance

More questions in this forum