Skip to content
Snippets Groups Projects
Commit 00e71766 authored by Damien George's avatar Damien George
Browse files

stmhal/main: Use _estack value to initialise stack extents.

parent 882ec01e
No related branches found
No related tags found
No related merge requests found
......@@ -508,8 +508,8 @@ soft_reset:
// Stack limit should be less than real stack size, so we have a chance
// to recover from limit hit. (Limit is measured in bytes.)
// Note: stack control relies on main thread being initialised above
mp_stack_ctrl_init();
mp_stack_set_limit((char*)&_ram_end - (char*)&_heap_end - 1024);
mp_stack_set_top(&_estack);
mp_stack_set_limit((char*)&_estack - (char*)&_heap_end - 1024);
// GC init
gc_init(&_heap_start, &_heap_end);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment