Changeset 5fe5f1e in mainline for generic/src/main/main.c


Ignore:
Timestamp:
2006-01-04T13:14:39Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dfd9186
Parents:
b524c5e0
Message:

Clean up.

File:
1 edited

Legend:

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

    rb524c5e0 r5fe5f1e  
    3838#include <proc/task.h>
    3939#include <main/kinit.h>
     40#include <main/version.h>
    4041#include <console/kconsole.h>
    4142#include <cpu.h>
    4243#include <align.h>
    4344#include <interrupt.h>
    44 #include <main/version.h>
    45 
    46 #ifdef CONFIG_SMP
    47 #include <arch/smp/apic.h>
    48 #include <arch/smp/mps.h>
    49 #endif /* CONFIG_SMP */
    50 
    51 #include <smp/smp.h>
    52 
    5345#include <arch/mm/memory_init.h>
    5446#include <mm/heap.h>
     
    5749#include <mm/tlb.h>
    5850#include <mm/vm.h>
    59 
    6051#include <synch/waitq.h>
    61 
    6252#include <arch/arch.h>
    6353#include <arch.h>
    6454#include <arch/faddr.h>
    65 
    6655#include <typedefs.h>
    6756
    68 config_t config;
     57#ifdef CONFIG_SMP
     58#include <arch/smp/apic.h>
     59#include <arch/smp/mps.h>
     60#endif /* CONFIG_SMP */
     61#include <smp/smp.h>
     62
     63config_t config;        /**< Global configuration structure. */
     64
    6965context_t ctx;
    7066
     
    9894 *
    9995 * Initializes the kernel by bootstrap CPU.
     96 * This function passes control directly to
     97 * main_bsp_separated_stack().
    10098 *
    10199 * Assuming interrupts_disable().
     
    205203                panic("can't create kinit thread\n");
    206204        thread_ready(t);
     205
    207206        /*
    208207         * This call to scheduler() will return to kinit,
     
    219218 * Executed by application processors, temporary stack
    220219 * is at ctx.sp which was set during BP boot.
     220 * This function passes control directly to
     221 * main_ap_separated_stack().
    221222 *
    222223 * Assuming interrupts_disable()'d.
Note: See TracChangeset for help on using the changeset viewer.