mirror of
https://github.com/micropython/micropython.git
synced 2025-12-15 17:30:14 +01:00
qemu/main: Replace mp_stack calls with mp_cstack_init_with_sp_here.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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 (;;) {
|
||||
|
||||
Reference in New Issue
Block a user