spresense: Return fixed stack

This commit is contained in:
Kamil Tomaszewski 2020-11-19 15:04:52 +01:00
parent 8ac9b176c9
commit 76d4824728
1 changed files with 5 additions and 1 deletions

View File

@ -98,8 +98,12 @@ void reset_to_bootloader(void) {
}
}
supervisor_allocation _fixed_stack;
supervisor_allocation* port_fixed_stack(void) {
return NULL;
_fixed_stack.ptr = port_stack_get_limit();
_fixed_stack.length = (port_stack_get_top() - port_stack_get_limit()) * sizeof(uint32_t);
return &_fixed_stack;
}
uint32_t *port_stack_get_limit(void) {