Function report |
Source Code:arch\x86\lib\insn-eval.c |
Create Date:2022-07-28 07:25:43 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_addr_ref_32() - Obtain a 32-bit linear address*@insn: Instruction with ModRM, SIB bytes and displacement*@regs: Register values as seen when entering kernel mode* This function is to be used with 32-bit address encodings to obtain the* linear memory
Proto:static void __user *get_addr_ref_32(struct insn *insn, struct pt_regs *regs)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct insn * | insn | |
| struct pt_regs * | regs |
| 1207 | linear_addr = -1L |
| 1212 | If addr_bytes != 4 Then Go to out |
| 1215 | If X86_MODRM_MOD(value) == 3 Then |
| 1222 | Else |
| 1253 | If Not user_64bit_mode(regs) && eff_addr > seg_limit Then Go to out |
| 1260 | If v8086_mode(regs) && eff_addr & ~0xffff Then Go to out |
| 1268 | linear_addr = (eff_addr & 0xffffffff) + seg_base |
| 1271 | If v8086_mode(regs) Then linear_addr &= 0xfffff |
| 1274 | out : |
| 1275 | Return linear_addr |
| Name | Describe |
|---|---|
| insn_get_addr_ref | sn_get_addr_ref() - Obtain the linear address referred by instruction*@insn: Instruction structure containing ModRM byte and displacement*@regs: Structure with register values as seen when entering kernel mode* Obtain the linear address referred by the |
| 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 |