mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp_expression_with_stack: fix wrong top of stack calculation plus documentation update
This commit is contained in:
@@ -6,8 +6,7 @@ StackType_t * esp_switch_stack_setup(StackType_t *stack, size_t stack_size)
|
||||
{
|
||||
int watchpoint_place = (((int)stack + 31) & ~31);
|
||||
StackType_t *top_of_stack = (StackType_t *)&stack[0] +
|
||||
(sizeof(stack_size * sizeof(StackType_t)) /
|
||||
sizeof(StackType_t));
|
||||
((stack_size * sizeof(StackType_t)) / sizeof(StackType_t));
|
||||
|
||||
//Align stack to a 16byte boundary, as required by CPU specific:
|
||||
top_of_stack = (StackType_t *)(((UBaseType_t)(top_of_stack - 31) -
|
||||
|
Reference in New Issue
Block a user