diff options
| -rw-r--r-- | tools/objtool/arch/x86/insn/inat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/objtool/arch/x86/insn/inat.h b/tools/objtool/arch/x86/insn/inat.h index 125ecd2a300d..52dc8d911173 100644 --- a/tools/objtool/arch/x86/insn/inat.h +++ b/tools/objtool/arch/x86/insn/inat.h | |||
| @@ -97,6 +97,16 @@ | |||
| 97 | #define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM) | 97 | #define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM) |
| 98 | #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS) | 98 | #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS) |
| 99 | 99 | ||
| 100 | /* Identifiers for segment registers */ | ||
| 101 | #define INAT_SEG_REG_IGNORE 0 | ||
| 102 | #define INAT_SEG_REG_DEFAULT 1 | ||
| 103 | #define INAT_SEG_REG_CS 2 | ||
| 104 | #define INAT_SEG_REG_SS 3 | ||
| 105 | #define INAT_SEG_REG_DS 4 | ||
| 106 | #define INAT_SEG_REG_ES 5 | ||
| 107 | #define INAT_SEG_REG_FS 6 | ||
| 108 | #define INAT_SEG_REG_GS 7 | ||
| 109 | |||
| 100 | /* Attribute search APIs */ | 110 | /* Attribute search APIs */ |
| 101 | extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode); | 111 | extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode); |
| 102 | extern int inat_get_last_prefix_id(insn_byte_t last_pfx); | 112 | extern int inat_get_last_prefix_id(insn_byte_t last_pfx); |
