File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 197197#define SMODE_TIMER_TICKS (SOC_TIMER_FREQ / (1000 / (SMODE_TICK_MS)))
198198
199199/* Create separated interrupt stack M-Mode and S-Mode execution when INTSTACK macro defined */
200- #define INTERRUPT_STACK_SIZE 10240
200+ #define INTERRUPT_STACK_SIZE 20480
201201uint8_t mmode_int_stack [INTERRUPT_STACK_SIZE ] __attribute__((aligned (16 )));
202202uintptr_t mmode_int_sp = (uintptr_t )(mmode_int_stack + sizeof (mmode_int_stack ));
203203
204204uint8_t smode_int_stack [INTERRUPT_STACK_SIZE ] __attribute__((aligned (16 )));
205205uintptr_t smode_int_sp = (uintptr_t )(smode_int_stack + sizeof (smode_int_stack ));
206206
207207/* Create a stack for supervisor mode execution */
208- #define SMODE_STACK_SIZE 10240
208+ #define SMODE_STACK_SIZE 20480
209209uint8_t smode_stack [SMODE_STACK_SIZE ] __attribute__((aligned (16 )));
210210uintptr_t smode_sp = (uintptr_t )(smode_stack + sizeof (smode_stack ));
211211
Original file line number Diff line number Diff line change 2929// 100ms
3030#define TIMER_TICKS (SOC_TIMER_FREQ / 10)
3131
32- // 2048 is enough
33- #define SMODE_STACK_SIZE 2048
32+ // 4096 is enough
33+ #define SMODE_STACK_SIZE 4096
3434
3535/* Create a stack for supervisor mode execution */
3636uint8_t smode_stack [SMODE_STACK_SIZE ] __attribute__((aligned (16 )));
You can’t perform that action at this time.
0 commit comments