From d2d0648ad0dd552ba8bec3425ca4ce52d3c91f62 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 8 Jan 2015 21:40:35 +0000 Subject: [PATCH] qemu-arm: Set stack limit in main. --- qemu-arm/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-arm/main.c b/qemu-arm/main.c index 3ad09e6deb..a35005e9da 100644 --- a/qemu-arm/main.c +++ b/qemu-arm/main.c @@ -8,6 +8,7 @@ #include "py/compile.h" #include "py/runtime0.h" #include "py/runtime.h" +#include "py/stackctrl.h" #include "py/repl.h" #include "py/pfenv.h" @@ -49,6 +50,7 @@ void do_str(const char *src) { } int main(int argc, char **argv) { + mp_stack_set_limit(10240); mp_init(); do_str("print('hello world!')"); mp_deinit();