mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
Make rt_fun_table const, so it goes in .text section.
This commit is contained in:
parent
00ff04fc49
commit
1595f3257e
@ -1546,7 +1546,7 @@ py_obj_t rt_iternext(py_obj_t o_in) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void *rt_fun_table[RT_F_NUMBER_OF] = {
|
const void *const rt_fun_table[RT_F_NUMBER_OF] = {
|
||||||
rt_load_const_str,
|
rt_load_const_str,
|
||||||
rt_load_name,
|
rt_load_name,
|
||||||
rt_load_global,
|
rt_load_global,
|
||||||
|
@ -76,7 +76,7 @@ typedef enum {
|
|||||||
RT_F_NUMBER_OF,
|
RT_F_NUMBER_OF,
|
||||||
} rt_fun_kind_t;
|
} rt_fun_kind_t;
|
||||||
|
|
||||||
extern void *rt_fun_table[RT_F_NUMBER_OF];
|
extern const void *const rt_fun_table[RT_F_NUMBER_OF];
|
||||||
|
|
||||||
typedef machine_ptr_t py_obj_t; // must be of pointer size
|
typedef machine_ptr_t py_obj_t; // must be of pointer size
|
||||||
typedef py_obj_t (*py_fun_0_t)();
|
typedef py_obj_t (*py_fun_0_t)();
|
||||||
|
Loading…
Reference in New Issue
Block a user