diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-08 21:40:35 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-08 21:40:35 +0000 |
commit | d2d0648ad0dd552ba8bec3425ca4ce52d3c91f62 (patch) | |
tree | 17f6ca65b2070e9e14c669d3e854ebf2b4f2a1c0 /qemu-arm/main.c | |
parent | 7a53ac8ec269c91b9ccb79a521a6ba31b0bb1c9d (diff) | |
download | micropython-d2d0648ad0dd552ba8bec3425ca4ce52d3c91f62.tar.gz micropython-d2d0648ad0dd552ba8bec3425ca4ce52d3c91f62.zip |
qemu-arm: Set stack limit in main.
Diffstat (limited to 'qemu-arm/main.c')
-rw-r--r-- | qemu-arm/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |