Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    r26aafe8 r8d308b9  
    118118#endif
    119119
     120#define CONFIG_STACK_SIZE  ((1 << STACK_FRAMES) * STACK_SIZE)
     121
    120122/** Main kernel routine for bootstrap CPU.
    121123 *
     
    137139        config.kernel_size = ALIGN_UP(hardcoded_ktext_size +
    138140            hardcoded_kdata_size, PAGE_SIZE);
    139         config.stack_size = STACK_SIZE;
     141        config.stack_size = CONFIG_STACK_SIZE;
    140142       
    141143        /* Initialy the stack is placed just after the kernel */
     
    163165       
    164166        context_save(&ctx);
    165         context_set(&ctx, FADDR(main_bsp_separated_stack),
    166             config.stack_base, STACK_SIZE);
     167        context_set(&ctx, FADDR(main_bsp_separated_stack), config.stack_base,
     168            THREAD_STACK_SIZE);
    167169        context_restore(&ctx);
    168170        /* not reached */
     
    321323        context_save(&CPU->saved_context);
    322324        context_set(&CPU->saved_context, FADDR(main_ap_separated_stack),
    323             (uintptr_t) CPU->stack, STACK_SIZE);
     325            (uintptr_t) CPU->stack, CPU_STACK_SIZE);
    324326        context_restore(&CPU->saved_context);
    325327        /* not reached */
Note: See TracChangeset for help on using the changeset viewer.