diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-27 20:54:22 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-27 21:02:04 +0300 |
commit | 8a96ebea75158987c1136f1a618d98cf387445fd (patch) | |
tree | d6ec8848a10d6f32c268c7814cbb4fa6aac7843d /stmhal/main.c | |
parent | 64c58403efc8f7c4d95f8bd18c3afc86fa792fcc (diff) | |
download | micropython-8a96ebea75158987c1136f1a618d98cf387445fd.tar.gz micropython-8a96ebea75158987c1136f1a618d98cf387445fd.zip |
py: Move stack_ctrl_init() to mp_init().
As stack checking is enabled by default, ports which don't call
stack_ctrl_init() are broken now (report RuntimeError on startup). Save
them trouble and just init stack control framework in interpreter init.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index 4e50daba41..9f48fbfd65 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -187,7 +187,6 @@ static const char fresh_readme_txt[] = int main(void) { // TODO disable JTAG - stack_ctrl_init(); // Stack limit should be less than real stack size, so we // had chance to recover from limit hit. stack_set_limit(&_ram_end - &_heap_end - 512); |