misc/mp_utils: Add pystack initializer.

This commit is contained in:
iabdalkader 2024-07-02 19:57:53 +02:00
parent eaeff63f34
commit 976aee80ae

View File

@ -129,6 +129,11 @@ void mp_init_gc_stack(void *sstack, void *estack, void *heap_start, void *heap_e
// chance to recover from limit hit. (Limit is measured in bytes)
mp_stack_set_limit(estack - sstack - stack_limit);
#if MICROPY_ENABLE_PYSTACK
static mp_obj_t pystack[384];
mp_pystack_init(pystack, &pystack[384]);
#endif
// Initialize gc memory.
gc_init(heap_start, heap_end);