@@ -90,6 +90,7 @@ static void ack_vic_irq(unsigned int irq);
9090static void vic_enable_cpi (void );
9191static void do_boot_cpu (__u8 cpuid );
9292static void do_quad_bootstrap (void );
93+ static void initialize_secondary (void );
9394
9495int hard_smp_processor_id (void );
9596int safe_smp_processor_id (void );
@@ -344,6 +345,12 @@ static void do_quad_bootstrap(void)
344345 }
345346}
346347
348+ void prefill_possible_map (void )
349+ {
350+ /* This is empty on voyager because we need a much
351+ * earlier detection which is done in find_smp_config */
352+ }
353+
347354/* Set up all the basic stuff: read the SMP config and make all the
348355 * SMP information reflect only the boot cpu. All others will be
349356 * brought on-line later. */
@@ -413,6 +420,7 @@ void __init smp_store_cpu_info(int id)
413420 struct cpuinfo_x86 * c = & cpu_data (id );
414421
415422 * c = boot_cpu_data ;
423+ c -> cpu_index = id ;
416424
417425 identify_secondary_cpu (c );
418426}
@@ -650,6 +658,8 @@ void __init smp_boot_cpus(void)
650658 smp_tune_scheduling();
651659 */
652660 smp_store_cpu_info (boot_cpu_id );
661+ /* setup the jump vector */
662+ initial_code = (unsigned long )initialize_secondary ;
653663 printk ("CPU%d: " , boot_cpu_id );
654664 print_cpu_info (& cpu_data (boot_cpu_id ));
655665
@@ -702,7 +712,7 @@ void __init smp_boot_cpus(void)
702712
703713/* Reload the secondary CPUs task structure (this function does not
704714 * return ) */
705- void __init initialize_secondary (void )
715+ static void __init initialize_secondary (void )
706716{
707717#if 0
708718 // AC kernels only
0 commit comments