summaryrefslogtreecommitdiff
path: root/ports/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/main.c')
-rw-r--r--ports/unix/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/unix/main.c b/ports/unix/main.c
index 25f3e04fb..03f2f357e 100644
--- a/ports/unix/main.c
+++ b/ports/unix/main.c
@@ -440,6 +440,11 @@ MP_NOINLINE int main_(int argc, char **argv) {
gc_init(heap, heap + heap_size);
#endif
+ #if MICROPY_ENABLE_PYSTACK
+ static mp_obj_t pystack[1024];
+ mp_pystack_init(pystack, &pystack[MP_ARRAY_SIZE(pystack)]);
+ #endif
+
mp_init();
char *home = getenv("HOME");