Skip to content

Commit cbe137c

Browse files
committed
qemu/main: Replace mp_stack calls with mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <[email protected]>
1 parent 1737a69 commit cbe137c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ports/qemu/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
#include "py/compile.h"
3030
#include "py/runtime.h"
31-
#include "py/stackctrl.h"
3231
#include "py/gc.h"
3332
#include "py/mperrno.h"
3433
#include "shared/runtime/gchelper.h"
@@ -41,8 +40,7 @@
4140
static uint32_t gc_heap[MICROPY_HEAP_SIZE / sizeof(uint32_t)];
4241

4342
int main(int argc, char **argv) {
44-
mp_stack_ctrl_init();
45-
mp_stack_set_limit(10240);
43+
mp_cstack_init_with_sp_here(10240);
4644
gc_init(gc_heap, (char *)gc_heap + MICROPY_HEAP_SIZE);
4745

4846
for (;;) {

0 commit comments

Comments
 (0)