Skip to content

Commit a356d2a

Browse files
author
Ingo Molnar
committed
tools/headers: Sync objtool UAPI header
objtool grew this new warning: Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h' differs from latest kernel version at 'arch/x86/include/asm/inat.h' which upstream header grew new INAT_SEG_* definitions. Sync up the tooling version of the header. Reported-by: Linus Torvalds <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 050ab10 commit a356d2a

File tree

1 file changed

+10
-0
lines changed
  • tools/objtool/arch/x86/include/asm

1 file changed

+10
-0
lines changed

tools/objtool/arch/x86/include/asm/inat.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@
9797
#define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM)
9898
#define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS)
9999

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+
100110
/* Attribute search APIs */
101111
extern insn_attr_t inat_get_opcode_attribute(insn_byte_t opcode);
102112
extern int inat_get_last_prefix_id(insn_byte_t last_pfx);

0 commit comments

Comments
 (0)