Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
00e71766
Commit
00e71766
authored
Jan 31, 2017
by
Damien George
Browse files
stmhal/main: Use _estack value to initialise stack extents.
parent
882ec01e
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
00e71766
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment