Changeset 26678e5 in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2006-09-26T15:10:40Z (19 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.

Location:
kernel/arch/ia32/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/ia32.c

    rb44939b r26678e5  
    6363#include <console/console.h>
    6464
     65#ifdef CONFIG_SMP
     66#include <arch/smp/apic.h>
     67#endif
     68
    6569void arch_pre_mm_init(void)
    6670{
     
    98102                zone_merge_all();
    99103        }
     104}
     105
     106void arch_post_cpu_init()
     107{
     108#ifdef CONFIG_SMP
     109        if (config.cpu_active > 1) {
     110                l_apic_init();
     111                l_apic_debug();
     112        }
     113#endif
    100114}
    101115
  • kernel/arch/ia32/src/smp/mps.c

    rb44939b r26678e5  
    8585int l_intr_entry_cnt = 0;
    8686
    87 waitq_t ap_completion_wq;
    88 
    8987/*
    9088 * Implementation of IA-32 SMP configuration interface.
  • kernel/arch/ia32/src/smp/smp.c

    rb44939b r26678e5  
    105105        ASSERT(ops != NULL);
    106106
    107         waitq_initialize(&ap_completion_wq);
    108 
    109107        /*
    110108         * We need to access data in frame 0.
Note: See TracChangeset for help on using the changeset viewer.