summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 09e4237aff..d8fc3ff6e4 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -157,13 +157,7 @@ void rt_init(void) {
mp_obj_new_module(qstr_from_str_static("sys"));
#endif
- mp_obj_t m_mp = mp_obj_new_module(qstr_from_str_static("micropython"));
- rt_store_name(qstr_from_str_static("micropython"), m_mp);
-#if MICROPY_MEM_STATS
- rt_store_attr(m_mp, qstr_from_str_static("mem_total"), (mp_obj_t)&mp_builtin_mem_total_obj);
- rt_store_attr(m_mp, qstr_from_str_static("mem_current"), (mp_obj_t)&mp_builtin_mem_current_obj);
- rt_store_attr(m_mp, qstr_from_str_static("mem_peak"), (mp_obj_t)&mp_builtin_mem_peak_obj);
-#endif
+ mp_module_micropython_init();
next_unique_code_id = 1; // 0 indicates "no code"
unique_codes_alloc = 0;