Changes in kernel/generic/src/main/main.c [26aafe8:933cadf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/main.c
r26aafe8 r933cadf 71 71 #include <mm/as.h> 72 72 #include <mm/slab.h> 73 #include <mm/reserve.h>74 73 #include <synch/waitq.h> 75 74 #include <synch/futex.h> … … 118 117 #endif 119 118 119 #define CONFIG_STACK_SIZE ((1 << STACK_FRAMES) * STACK_SIZE) 120 120 121 /** Main kernel routine for bootstrap CPU. 121 122 * … … 137 138 config.kernel_size = ALIGN_UP(hardcoded_ktext_size + 138 139 hardcoded_kdata_size, PAGE_SIZE); 139 config.stack_size = STACK_SIZE;140 config.stack_size = CONFIG_STACK_SIZE; 140 141 141 142 /* Initialy the stack is placed just after the kernel */ … … 163 164 164 165 context_save(&ctx); 165 context_set(&ctx, FADDR(main_bsp_separated_stack), 166 config.stack_base,STACK_SIZE);166 context_set(&ctx, FADDR(main_bsp_separated_stack), config.stack_base, 167 THREAD_STACK_SIZE); 167 168 context_restore(&ctx); 168 169 /* not reached */ … … 216 217 ddi_init(); 217 218 arch_post_mm_init(); 218 reserve_init();219 219 arch_pre_smp_init(); 220 220 smp_init(); … … 321 321 context_save(&CPU->saved_context); 322 322 context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), 323 (uintptr_t) CPU->stack, STACK_SIZE);323 (uintptr_t) CPU->stack, CPU_STACK_SIZE); 324 324 context_restore(&CPU->saved_context); 325 325 /* not reached */
Note:
See TracChangeset
for help on using the changeset viewer.