Merge pull request #3725 from kamtom480/fixed_stack

Return fixed stack on Spresense
This commit is contained in:
Jeff Epler 2020-11-19 10:41:33 -06:00 committed by GitHub
commit f1e2931752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {