Rev 430 | Rev 460 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 430 | Rev 458 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <proc/task.h> |
37 | #include <proc/task.h> |
38 | #include <main/kinit.h> |
38 | #include <main/kinit.h> |
39 | #include <cpu.h> |
39 | #include <cpu.h> |
40 | #include <align.h> |
40 | #include <align.h> |
41 | 41 | ||
42 | #ifdef __SMP__ |
42 | #ifdef CONFIG_SMP |
43 | #include <arch/smp/apic.h> |
43 | #include <arch/smp/apic.h> |
44 | #include <arch/smp/mps.h> |
44 | #include <arch/smp/mps.h> |
45 | #endif /* __SMP__ */ |
45 | #endif /* CONFIG_SMP */ |
46 | 46 | ||
47 | #include <smp/smp.h> |
47 | #include <smp/smp.h> |
48 | 48 | ||
49 | #include <arch/mm/memory_init.h> |
49 | #include <arch/mm/memory_init.h> |
50 | #include <mm/heap.h> |
50 | #include <mm/heap.h> |
Line 200... | Line 200... | ||
200 | scheduler(); |
200 | scheduler(); |
201 | /* not reached */ |
201 | /* not reached */ |
202 | } |
202 | } |
203 | 203 | ||
204 | 204 | ||
205 | #ifdef __SMP__ |
205 | #ifdef CONFIG_SMP |
206 | /** Application CPUs main kernel routine |
206 | /** Application CPUs main kernel routine |
207 | * |
207 | * |
208 | * Executed by application processors, temporary stack |
208 | * Executed by application processors, temporary stack |
209 | * is at ctx.sp which was set during BP boot. |
209 | * is at ctx.sp which was set during BP boot. |
210 | * |
210 | * |
Line 266... | Line 266... | ||
266 | 266 | ||
267 | waitq_wakeup(&ap_completion_wq, WAKEUP_FIRST); |
267 | waitq_wakeup(&ap_completion_wq, WAKEUP_FIRST); |
268 | scheduler(); |
268 | scheduler(); |
269 | /* not reached */ |
269 | /* not reached */ |
270 | } |
270 | } |
271 | #endif /* __SMP__*/ |
271 | #endif /* CONFIG_SMP */ |