stub.c (775B)
1 /* Copyright 1998-1999, Brian J. Swetland. All rights reserved. 2 ** Distributed under the terms of the OpenBLT License 3 */ 4 5 #ifdef __SMP__ 6 #include "smp.h" 7 #endif 8 9 void kmain(void); 10 11 /* 12 * Our state here depends on how we got here. If we are called from the 13 * first stage bootstrap, we go into the kernel setup code. We can also 14 * arrive here executing on an application processor that has just completed 15 * its move into the wonderful world of protected mode. If this is the case, 16 * we jump into smp code to finish our setup and wait for word from the 17 * bootstrap processor. 18 */ 19 void _start(void) 20 { 21 #ifdef __SMP__ 22 /* have we detected more processors yet? */ 23 if (smp_num_cpus > 1) 24 smp_cpu_ready (); 25 else 26 #endif 27 kmain(); 28 /* not reached */ 29 } 30