Function report |
Source Code:arch\x86\lib\insn-eval.c |
Create Date:2022-07-28 07:25:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_reg_offset_16() - Obtain offset of register indicated by instruction*@insn: Instruction containing ModRM byte*@regs: Register values as seen when entering kernel mode*@offs1: Offset of the first operand register*@offs2: Offset of the second opeand
Proto:static int get_reg_offset_16(struct insn *insn, struct pt_regs *regs, int *offs1, int *offs2)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct insn * | insn | |
struct pt_regs * | regs | |
int * | offs1 | |
int * | offs2 |
510 | static const int regoff1[] = {offsetof(structpt_regs, bx), offsetof(structpt_regs, bx), offsetof(structpt_regs, bp), offsetof(structpt_regs, bp), offsetof(structpt_regs, si), offsetof(structpt_regs, di), offsetof(structpt_regs, bp), offsetof(structpt_regs, bx), } |
521 | static const int regoff2[] = {offsetof(structpt_regs, si), offsetof(structpt_regs, di), offsetof(structpt_regs, si), offsetof(structpt_regs, di), - EDOM, - EDOM, - EDOM, - EDOM, } |
536 | If X86_MODRM_MOD(value) == 3 Then |
539 | Return 0 |
542 | offs1 = regoff1[X86_MODRM_RM(value)] |
543 | offs2 = regoff2[X86_MODRM_RM(value)] |
552 | If X86_MODRM_MOD(value) == 0 && X86_MODRM_RM(value) == 6 Then offs1 = -EDOM |
556 | Return 0 |
Name | Describe |
---|---|
get_eff_addr_modrm_16 | get_eff_addr_modrm_16() - Obtain referenced effective address via ModRM*@insn: Instruction |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |