mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
cpu/esp32: fix coprocessor stack alignment
This commit is contained in:
parent
950dfba7de
commit
28d9599d52
@ -183,7 +183,7 @@ char* thread_stack_init(thread_task_func_t task_func, void *arg, void *stack_sta
|
||||
|
||||
uint32_t *p;
|
||||
|
||||
p = (uint32_t *)(((uint32_t) top_of_stack+1 - XT_CP_SIZE));
|
||||
p = (uint32_t *)(((uint32_t)(top_of_stack + 1) - XT_CP_SIZE) & ~0xf);
|
||||
p[0] = 0;
|
||||
p[1] = 0;
|
||||
p[2] = (((uint32_t) p) + 12 + XCHAL_TOTAL_SA_ALIGN - 1) & -XCHAL_TOTAL_SA_ALIGN;
|
||||
|
Loading…
Reference in New Issue
Block a user