Optimize the code of head_jump.h and stack_check.h.
Opened this issue · 1 comments
Dengerwei commented
Background
These code is a little unclear and not easy to read. For the following points:
- It is better to use the sort API from kernel because it is very stable.
- The size and address variables of interface functions might be better wrapped into a structure.
- The size of interface function is stored in two variables, which one is vm/mod_func_size array and the other is mod/orig_##func##_size variable.
Task
Optimize the code of head_jump.h and stack_check.h.
chenshanpei commented
BTW,don't define global variables in header file.