Changeset 5fe5f1e in mainline for generic/src/main/main.c
- Timestamp:
- 2006-01-04T13:14:39Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dfd9186
- Parents:
- b524c5e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/main/main.c
rb524c5e0 r5fe5f1e 38 38 #include <proc/task.h> 39 39 #include <main/kinit.h> 40 #include <main/version.h> 40 41 #include <console/kconsole.h> 41 42 #include <cpu.h> 42 43 #include <align.h> 43 44 #include <interrupt.h> 44 #include <main/version.h>45 46 #ifdef CONFIG_SMP47 #include <arch/smp/apic.h>48 #include <arch/smp/mps.h>49 #endif /* CONFIG_SMP */50 51 #include <smp/smp.h>52 53 45 #include <arch/mm/memory_init.h> 54 46 #include <mm/heap.h> … … 57 49 #include <mm/tlb.h> 58 50 #include <mm/vm.h> 59 60 51 #include <synch/waitq.h> 61 62 52 #include <arch/arch.h> 63 53 #include <arch.h> 64 54 #include <arch/faddr.h> 65 66 55 #include <typedefs.h> 67 56 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 63 config_t config; /**< Global configuration structure. */ 64 69 65 context_t ctx; 70 66 … … 98 94 * 99 95 * Initializes the kernel by bootstrap CPU. 96 * This function passes control directly to 97 * main_bsp_separated_stack(). 100 98 * 101 99 * Assuming interrupts_disable(). … … 205 203 panic("can't create kinit thread\n"); 206 204 thread_ready(t); 205 207 206 /* 208 207 * This call to scheduler() will return to kinit, … … 219 218 * Executed by application processors, temporary stack 220 219 * is at ctx.sp which was set during BP boot. 220 * This function passes control directly to 221 * main_ap_separated_stack(). 221 222 * 222 223 * Assuming interrupts_disable()'d.
Note:
See TracChangeset
for help on using the changeset viewer.