函数逻辑报告 |
Source Code:arch\x86\kernel\alternative.c |
Create Date:2022-07-27 08:44:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:recompute_jump
函数原型:static void __init_or_module recompute_jump(struct alt_instr *a, u8 *orig_insn, u8 *repl_insn, u8 *insn_buff)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct alt_instr * | a | |
u8 * | orig_insn | |
u8 * | repl_insn | |
u8 * | insn_buff |
288 | 如果 length of new instruction 不等于5则返回 |
302 | 如果n_dspl减2小于等于127则转到:two_byte_jmp |
304 | 否则转到:five_byte_jmp |
307 | 否则 |
308 | 如果n_dspl减2按位与0xff的值恒等于n_dspl减2则转到:two_byte_jmp |
310 | 否则转到:five_byte_jmp |
314 | two_byte_jmp : |
315 | n_dspl减等于2 |
317 | insn_buff[0]等于0xeb |
321 | repl_len等于2 |
322 | 转到:done |
324 | five_byte_jmp : |
325 | n_dspl减等于5 |
327 | insn_buff[0]等于0xe9 |
330 | repl_len等于5 |
332 | done : |
名称 | 描述 |
---|---|
apply_alternatives | Replace instructions with better alternatives for this CPU type. This runs* before SMP is initialized to avoid SMP problems with self modifying code.* This implies that asymmetric systems where APs have less capabilities than |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |