cpu: use typed function pointer for thread_arch_init
Merge pull request #1866 from OlegHahm/core_fix_thread_init_prototype

cpu: use typed function pointer for thread_arch_init