Searched refs:MP_STATE_THREAD (Results 1 – 19 of 19) sorted by relevance
34 MP_STATE_THREAD(pystack_start) = start; in mp_pystack_init()35 MP_STATE_THREAD(pystack_end) = end; in mp_pystack_init()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()
44 assert((uint8_t *)ptr >= MP_STATE_THREAD(pystack_start)); in mp_pystack_free()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()71 return MP_STATE_THREAD(pystack_end) - MP_STATE_THREAD(pystack_start); in mp_pystack_limit()
32 MP_STATE_THREAD(stack_top) = (char *)&stack_dummy; in mp_stack_ctrl_init()36 MP_STATE_THREAD(stack_top) = top; in mp_stack_set_top()42 return MP_STATE_THREAD(stack_top) - (char *)&stack_dummy; in mp_stack_usage()48 MP_STATE_THREAD(stack_limit) = limit; in mp_stack_set_limit()52 if (mp_stack_usage() >= MP_STATE_THREAD(stack_limit)) { in mp_stack_check()
71 mp_obj_t obj = MP_STATE_THREAD(mp_pending_exception); in mp_handle_pending()73 MP_STATE_THREAD(mp_pending_exception) = MP_OBJ_NULL; in mp_handle_pending()120 if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL || mp_sched_num_pending()) { in mp_sched_unlock()153 if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL) { in mp_handle_pending()154 mp_obj_t obj = MP_STATE_THREAD(mp_pending_exception); in mp_handle_pending()155 MP_STATE_THREAD(mp_pending_exception) = MP_OBJ_NULL; in mp_handle_pending()
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)->pystack126 nlr_buf_t **_top_ptr = &MP_STATE_THREAD(nlr_top); \170 assert(MP_STATE_THREAD(nlr_top) != val),nlr_push(val)
41 nlr_buf_t **top = &MP_STATE_THREAD(nlr_top); in nlr_push_tail()49 nlr_buf_t **top = &MP_STATE_THREAD(nlr_top); in nlr_pop()
92 return MP_STATE_THREAD(dict_locals); in mp_locals_get()95 MP_STATE_THREAD(dict_locals) = d; in mp_locals_set()98 return MP_STATE_THREAD(dict_globals); in mp_globals_get()101 MP_STATE_THREAD(dict_globals) = d; in mp_globals_set()158 MP_STATE_THREAD(stop_iteration_arg) = o; in mp_make_stop_iteration()
294 #define MP_STATE_THREAD(x) (mp_thread_get_state()->x) macro296 #define MP_STATE_THREAD(x) (mp_state_ctx.thread.x) macro
32 nlr_buf_t **top_ptr = &MP_STATE_THREAD(nlr_top); in nlr_jump()
138 MP_STATE_THREAD(current_code_state) = code_state; \144 code_state->prev_state = MP_STATE_THREAD(current_code_state); \153 MP_STATE_THREAD(current_code_state) = code_state->prev_state; \158 assert(MP_STATE_THREAD(current_code_state) == code_state); \166 assert(MP_STATE_THREAD(current_code_state) == code_state); \167 if (!mp_prof_is_executing && code_state->frame && MP_STATE_THREAD(prof_trace_callback)) { \1371 mp_obj_t obj = MP_STATE_THREAD(mp_pending_exception); in mp_execute_bytecode()1373 MP_STATE_THREAD(mp_pending_exception) = MP_OBJ_NULL; in mp_execute_bytecode()1387 if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL) { in mp_execute_bytecode()1389 mp_obj_t obj = MP_STATE_THREAD(mp_pending_exception); in mp_execute_bytecode()[all …]
34 #define mp_prof_is_executing MP_STATE_THREAD(prof_callback_is_executing)
65 MP_STATE_THREAD(mp_pending_exception) = MP_OBJ_NULL; in mp_init()130 MP_STATE_THREAD(prof_trace_callback) = MP_OBJ_NULL; in mp_init()131 MP_STATE_THREAD(prof_callback_is_executing) = false; in mp_init()132 MP_STATE_THREAD(current_code_state) = NULL; in mp_init()1226 MP_STATE_THREAD(stop_iteration_arg) = MP_OBJ_NULL; in mp_iternext_allow_raise()1252 MP_STATE_THREAD(stop_iteration_arg) = MP_OBJ_NULL; in mp_iternext()1292 MP_STATE_THREAD(stop_iteration_arg) = MP_OBJ_NULL; in mp_resume()1300 *ret_val = MP_STATE_THREAD(stop_iteration_arg); in mp_resume()
339 ptrs = (void **)(void *)MP_STATE_THREAD(pystack_start); in gc_collect_start()340 …gc_collect_root(ptrs, (MP_STATE_THREAD(pystack_cur) - MP_STATE_THREAD(pystack_start)) / sizeof(voi… in gc_collect_start()
77 mp_stack_usage(), (mp_uint_t)MP_STATE_THREAD(stack_limit)); in mp_micropython_mem_info()
192 DEBUG_printf("[thread] start ts=%p args=%p stack=%p\n", &ts, &args, MP_STATE_THREAD(stack_top)); in thread_entry()
325 mp_raise_StopIteration(MP_STATE_THREAD(stop_iteration_arg)); in mp_builtin_next()339 mp_raise_StopIteration(MP_STATE_THREAD(stop_iteration_arg)); in mp_builtin_next()
33 #define prof_trace_cb MP_STATE_THREAD(prof_trace_callback)300 if (MP_STATE_THREAD(mp_pending_exception) != MP_OBJ_NULL) { in mp_prof_callback_invoke()
47 gc_collect_root((void **)sp, ((uint32_t)MP_STATE_THREAD(stack_top) - sp) / sizeof(uint32_t)); in gc_helper_collect_regs_and_stack()
186 …gc_collect_root(regs_ptr, ((uintptr_t)MP_STATE_THREAD(stack_top) - (uintptr_t)®s) / sizeof(uint… in gc_helper_collect_regs_and_stack()
Completed in 29 milliseconds