Changeset 26678e5 in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2006-09-26T15:10:40Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86b31ba9
Parents:
b44939b
Message:

Make SMP related parts of main.c more generic.
Move initialization of local APIC to architecture specific code.
Add arch_post_cpu_init() to support the above.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    rb44939b r26678e5  
    8080#include <adt/btree.h>
    8181#include <console/klog.h>
    82 
    83 #ifdef CONFIG_SMP
    84 #include <arch/smp/apic.h>
    85 #include <arch/smp/mps.h>
    86 #endif /* CONFIG_SMP */
    8782#include <smp/smp.h>
    8883
     
    272267 *
    273268 * Executed by application processors, temporary stack
    274  * is at ctx.sp which was set during BP boot.
     269 * is at ctx.sp which was set during BSP boot.
    275270 * This function passes control directly to
    276271 * main_ap_separated_stack().
     
    283278        /*
    284279         * Incrementing the active CPU counter will guarantee that the
    285          * pm_init() will not attempt to build GDT and IDT tables again.
    286          * Neither frame_init() will do the complete thing. Neither cpu_init()
    287          * will do.
     280         * *_init() functions can find out that they need to
     281         * do initialization for AP only.
    288282         */
    289283        config.cpu_active++;
     
    301295       
    302296        cpu_init();
    303        
    304297        calibrate_delay_loop();
    305 
    306         l_apic_init();
    307         l_apic_debug();
     298        arch_post_cpu_init();
    308299
    309300        the_copy(THE, (the_t *) CPU->stack);
Note: See TracChangeset for help on using the changeset viewer.