From 73d6a0973c44e9e1846de9fc1400582a40eed369 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 26 Sep 2025 00:45:59 +1000 Subject: [PATCH] powerpc/main: Replace mp_stack calls wih mp_cstack_init_with_sp_here. Signed-off-by: Damien George --- ports/powerpc/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ports/powerpc/main.c b/ports/powerpc/main.c index bbd2082b42..fa69696394 100644 --- a/ports/powerpc/main.c +++ b/ports/powerpc/main.c @@ -32,7 +32,6 @@ #include "py/repl.h" #include "py/gc.h" #include "py/mperrno.h" -#include "py/stackctrl.h" #include "shared/runtime/pyexec.h" void __stack_chk_fail(void); @@ -73,10 +72,7 @@ int main(int argc, char **argv) { mp_pystack_init(pystack, &pystack[1024]); #endif - #if MICROPY_STACK_CHECK - mp_stack_ctrl_init(); - mp_stack_set_limit(48 * 1024); - #endif + mp_cstack_init_with_sp_here(48 * 1024); #if MICROPY_ENABLE_GC gc_init(heap, heap + sizeof(heap));