powerpc/main: Replace mp_stack calls wih mp_cstack_init_with_sp_here.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-09-26 00:45:59 +10:00
parent 816074339a
commit 73d6a0973c

View File

@@ -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));