Update bare_metal/kmain.cpp

Make kmain a c routine.