Changeset 26678e5 in mainline for kernel/arch/amd64/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.

File:
1 edited

Legend:

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

    rb44939b r26678e5  
    4545#include <arch/drivers/i8254.h>
    4646#include <arch/drivers/i8259.h>
     47
     48#ifdef CONFIG_SMP
     49#include <arch/smp/apic.h>
     50#endif
    4751
    4852#include <arch/bios/bios.h>
     
    157161}
    158162
     163void arch_post_cpu_init()
     164{
     165#ifdef CONFIG_SMP
     166        if (config.cpu_active > 1) {
     167                l_apic_init();
     168                l_apic_debug();
     169        }
     170#endif
     171}
     172
    159173void arch_pre_smp_init(void)
    160174{
Note: See TracChangeset for help on using the changeset viewer.