Skip to content

Commit f1e2931

Browse files
authored
Merge pull request #3725 from kamtom480/fixed_stack
Return fixed stack on Spresense
2 parents 3e6661b + 76d4824 commit f1e2931

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ports/cxd56/supervisor/port.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,12 @@ void reset_to_bootloader(void) {
9898
}
9999
}
100100

101+
supervisor_allocation _fixed_stack;
102+
101103
supervisor_allocation* port_fixed_stack(void) {
102-
return NULL;
104+
_fixed_stack.ptr = port_stack_get_limit();
105+
_fixed_stack.length = (port_stack_get_top() - port_stack_get_limit()) * sizeof(uint32_t);
106+
return &_fixed_stack;
103107
}
104108

105109
uint32_t *port_stack_get_limit(void) {

0 commit comments

Comments
 (0)