Rev 1109 | Rev 1164 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1109 | Rev 1138 | ||
|---|---|---|---|
| Line 90... | Line 90... | ||
| 90 | static void main_bsp_separated_stack(void); |
90 | static void main_bsp_separated_stack(void); |
| 91 | #ifdef CONFIG_SMP |
91 | #ifdef CONFIG_SMP |
| 92 | static void main_ap_separated_stack(void); |
92 | static void main_ap_separated_stack(void); |
| 93 | #endif |
93 | #endif |
| 94 | 94 | ||
| - | 95 | #define CONFIG_STACK_SIZE ((1<<STACK_FRAMES)*STACK_SIZE) |
|
| - | 96 | ||
| 95 | /** Bootstrap CPU main kernel routine |
97 | /** Bootstrap CPU main kernel routine |
| 96 | * |
98 | * |
| 97 | * Initializes the kernel by bootstrap CPU. |
99 | * Initializes the kernel by bootstrap CPU. |
| 98 | * This function passes control directly to |
100 | * This function passes control directly to |
| 99 | * main_bsp_separated_stack(). |
101 | * main_bsp_separated_stack(). |
| Line 126... | Line 128... | ||
| 126 | 128 | ||
| 127 | if (!overlap) |
129 | if (!overlap) |
| 128 | config.kernel_size += CONFIG_STACK_SIZE; |
130 | config.kernel_size += CONFIG_STACK_SIZE; |
| 129 | 131 | ||
| 130 | context_save(&ctx); |
132 | context_save(&ctx); |
| 131 | context_set(&ctx, FADDR(main_bsp_separated_stack), |
133 | context_set(&ctx, FADDR(main_bsp_separated_stack), stackaddr, THREAD_STACK_SIZE); |
| 132 | stackaddr, CONFIG_STACK_SIZE); |
- | |
| 133 | context_restore(&ctx); |
134 | context_restore(&ctx); |
| 134 | /* not reached */ |
135 | /* not reached */ |
| 135 | } |
136 | } |
| 136 | 137 | ||
| 137 | 138 | ||