Skip to content

Commit d2d0648

Browse files
committed
qemu-arm: Set stack limit in main.
1 parent 7a53ac8 commit d2d0648

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

qemu-arm/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "py/compile.h"
99
#include "py/runtime0.h"
1010
#include "py/runtime.h"
11+
#include "py/stackctrl.h"
1112
#include "py/repl.h"
1213
#include "py/pfenv.h"
1314

@@ -49,6 +50,7 @@ void do_str(const char *src) {
4950
}
5051

5152
int main(int argc, char **argv) {
53+
mp_stack_set_limit(10240);
5254
mp_init();
5355
do_str("print('hello world!')");
5456
mp_deinit();

0 commit comments

Comments
 (0)