From 6ab3c3cb173bc28d39b8342cb7b66afeb29fae09 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 26 Sep 2025 00:56:04 +1000 Subject: [PATCH] mpy-cross/main: Replace mp_stack calls with mp_cstack_init_with_sp_here. Signed-off-by: Damien George --- mpy-cross/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mpy-cross/main.c b/mpy-cross/main.c index 9dcad3c5d8..51e338bbc2 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -34,7 +34,6 @@ #include "py/persistentcode.h" #include "py/runtime.h" #include "py/gc.h" -#include "py/stackctrl.h" #include "genhdr/mpversion.h" #ifdef _WIN32 #include "ports/windows/fmode.h" @@ -221,8 +220,6 @@ static char *backslash_to_forwardslash(char *path) { } MP_NOINLINE int main_(int argc, char **argv) { - mp_stack_set_limit(40000 * (sizeof(void *) / 4)); - pre_process_options(argc, argv); char *heap = malloc(heap_size); @@ -418,7 +415,7 @@ MP_NOINLINE int main_(int argc, char **argv) { } int main(int argc, char **argv) { - mp_stack_ctrl_init(); + mp_cstack_init_with_sp_here(40000 * (sizeof(void *) / 4)); return main_(argc, argv); }