Rev 1224 | Rev 1248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1224 | Rev 1229 | ||
---|---|---|---|
Line 93... | Line 93... | ||
93 | static void main_ap_separated_stack(void); |
93 | static void main_ap_separated_stack(void); |
94 | #endif |
94 | #endif |
95 | 95 | ||
96 | #define CONFIG_STACK_SIZE ((1<<STACK_FRAMES)*STACK_SIZE) |
96 | #define CONFIG_STACK_SIZE ((1<<STACK_FRAMES)*STACK_SIZE) |
97 | 97 | ||
98 | /** Bootstrap CPU main kernel routine |
98 | /** Main kernel routine for bootstrap CPU. |
99 | * |
99 | * |
100 | * Initializes the kernel by bootstrap CPU. |
100 | * Initializes the kernel by bootstrap CPU. |
101 | * This function passes control directly to |
101 | * This function passes control directly to |
102 | * main_bsp_separated_stack(). |
102 | * main_bsp_separated_stack(). |
103 | * |
103 | * |
Line 135... | Line 135... | ||
135 | context_restore(&ctx); |
135 | context_restore(&ctx); |
136 | /* not reached */ |
136 | /* not reached */ |
137 | } |
137 | } |
138 | 138 | ||
139 | 139 | ||
140 | /** Bootstrap CPU main kernel routine stack wrapper |
140 | /** Main kernel routine for bootstrap CPU using new stack. |
141 | * |
141 | * |
142 | * Second part of main_bsp(). |
142 | * Second part of main_bsp(). |
143 | * |
143 | * |
144 | */ |
144 | */ |
145 | void main_bsp_separated_stack(void) |
145 | void main_bsp_separated_stack(void) |
Line 222... | Line 222... | ||
222 | /* not reached */ |
222 | /* not reached */ |
223 | } |
223 | } |
224 | 224 | ||
225 | 225 | ||
226 | #ifdef CONFIG_SMP |
226 | #ifdef CONFIG_SMP |
227 | /** Application CPUs main kernel routine |
227 | /** Main kernel routine for application CPUs. |
228 | * |
228 | * |
229 | * Executed by application processors, temporary stack |
229 | * Executed by application processors, temporary stack |
230 | * is at ctx.sp which was set during BP boot. |
230 | * is at ctx.sp which was set during BP boot. |
231 | * This function passes control directly to |
231 | * This function passes control directly to |
232 | * main_ap_separated_stack(). |
232 | * main_ap_separated_stack(). |
Line 273... | Line 273... | ||
273 | context_restore(&CPU->saved_context); |
273 | context_restore(&CPU->saved_context); |
274 | /* not reached */ |
274 | /* not reached */ |
275 | } |
275 | } |
276 | 276 | ||
277 | 277 | ||
278 | /** Application CPUs main kernel routine stack wrapper |
278 | /** Main kernel routine for application CPUs using new stack. |
279 | * |
279 | * |
280 | * Second part of main_ap(). |
280 | * Second part of main_ap(). |
281 | * |
281 | * |
282 | */ |
282 | */ |
283 | void main_ap_separated_stack(void) |
283 | void main_ap_separated_stack(void) |