Function report |
Source Code:arch\x86\lib\insn-eval.c |
Create Date:2022-07-28 07:25:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sn_get_seg_base() - Obtain base address of segment descriptor
Proto:unsigned long insn_get_seg_base(struct pt_regs *regs, int seg_reg_idx)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct pt_regs * | regs | |
int | seg_reg_idx |
639 | If sel < 0 Then Return -1L |
642 | If v8086_mode(regs) Then Return sel << 4 |
649 | If user_64bit_mode(regs) Then |
656 | If seg_reg_idx == INAT_SEG_REG_FS Then rdmsrl(64bit FS base , base) |
658 | Else if seg_reg_idx == INAT_SEG_REG_GS Then rdmsrl(SwapGS GS shadow , base) |
664 | Else base = 0 |
666 | Return base |
670 | If Not sel Then Return -1L |
676 | Return get_desc_base( & desc) |
Name | Describe |
---|---|
get_seg_base_limit | get_seg_base_limit() - obtain base address and limit of a segment*@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 |