diff options
| author | Damien George <damien@micropython.org> | 2025-09-26 00:51:58 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-10-10 14:49:09 +1100 |
| commit | cbe137c4b8b6402be95ebe173653f0ea1e9dab66 (patch) | |
| tree | 6c8e7b84fb682da6980e5d1730bc913ef2f9c388 | |
| parent | 1737a690bc71d92daf27fe45d9a398ded02dcd59 (diff) | |
qemu/main: Replace mp_stack calls with mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/qemu/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/qemu/main.c b/ports/qemu/main.c index 75c6fe4cd..8d3097fbf 100644 --- a/ports/qemu/main.c +++ b/ports/qemu/main.c @@ -28,7 +28,6 @@ #include "py/compile.h" #include "py/runtime.h" -#include "py/stackctrl.h" #include "py/gc.h" #include "py/mperrno.h" #include "shared/runtime/gchelper.h" @@ -41,8 +40,7 @@ static uint32_t gc_heap[MICROPY_HEAP_SIZE / sizeof(uint32_t)]; int main(int argc, char **argv) { - mp_stack_ctrl_init(); - mp_stack_set_limit(10240); + mp_cstack_init_with_sp_here(10240); gc_init(gc_heap, (char *)gc_heap + MICROPY_HEAP_SIZE); for (;;) { |
