// this C code can be anywhere you want it, no relocation needed void ap_startup(int apicid) { // do what you want to do on the AP while(1); }