From 8a96ebea75158987c1136f1a618d98cf387445fd Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 27 Jun 2014 20:54:22 +0300 Subject: 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. --- stmhal/main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'stmhal') diff --git a/stmhal/main.c b/stmhal/main.c index 4e50daba4..9f48fbfd6 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); -- cgit v1.2.3