Searched refs:pystack_cur (Results 1 – 5 of 5) sorted by relevance
36 MP_STATE_THREAD(pystack_cur) = start; in mp_pystack_init()44 if (MP_STATE_THREAD(pystack_cur) + n_bytes > MP_STATE_THREAD(pystack_end)) { in mp_pystack_alloc()48 void *ptr = MP_STATE_THREAD(pystack_cur); in mp_pystack_alloc()49 MP_STATE_THREAD(pystack_cur) += n_bytes; in mp_pystack_alloc()51 *(size_t *)(MP_STATE_THREAD(pystack_cur) - MICROPY_PYSTACK_ALIGN) = n_bytes; in mp_pystack_alloc()
45 assert((uint8_t *)ptr <= MP_STATE_THREAD(pystack_cur)); in mp_pystack_free()47 size_t n_bytes_to_free = MP_STATE_THREAD(pystack_cur) - (uint8_t *)ptr; in mp_pystack_free()48 size_t n_bytes = *(size_t *)(MP_STATE_THREAD(pystack_cur) - MICROPY_PYSTACK_ALIGN); in mp_pystack_free()50 n_bytes += *(size_t *)(MP_STATE_THREAD(pystack_cur) - n_bytes - MICROPY_PYSTACK_ALIGN); in mp_pystack_free()54 (uint)*(size_t *)(MP_STATE_THREAD(pystack_cur) - MICROPY_PYSTACK_ALIGN)); in mp_pystack_free()58 MP_STATE_THREAD(pystack_cur) = (uint8_t *)ptr; in mp_pystack_free()67 return MP_STATE_THREAD(pystack_cur) - MP_STATE_THREAD(pystack_start); in mp_pystack_usage()
117 #define MP_NLR_SAVE_PYSTACK(nlr_buf) (nlr_buf)->pystack = MP_STATE_THREAD(pystack_cur)118 #define MP_NLR_RESTORE_PYSTACK(nlr_buf) MP_STATE_THREAD(pystack_cur) = (nlr_buf)->pystack
251 uint8_t *pystack_cur; member
340 …gc_collect_root(ptrs, (MP_STATE_THREAD(pystack_cur) - MP_STATE_THREAD(pystack_start)) / sizeof(voi… in gc_collect_start()
Completed in 7 milliseconds