lkml.org 
[lkml]   [2017]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v10 13/18] x86/insn-eval: Add utility functions to get segment selector
On Fri, Oct 27, 2017 at 10:25 PM, Ricardo Neri
<ricardo.neri-calderon@linux.intel.com> wrote:

> diff --git a/arch/x86/include/asm/inat.h b/arch/x86/include/asm/inat.h
> index 02aff08..1c78580 100644
> --- a/arch/x86/include/asm/inat.h
> +++ b/arch/x86/include/asm/inat.h
> @@ -97,6 +97,16 @@
> #define INAT_MAKE_GROUP(grp) ((grp << INAT_GRP_OFFS) | INAT_MODRM)
> #define INAT_MAKE_IMM(imm) (imm << INAT_IMM_OFFS)
>
> +/* Identifiers for segment registers */
> +#define INAT_SEG_REG_IGNORE 0
> +#define INAT_SEG_REG_DEFAULT 1
> +#define INAT_SEG_REG_CS 2
> +#define INAT_SEG_REG_SS 3
> +#define INAT_SEG_REG_DS 4
> +#define INAT_SEG_REG_ES 5
> +#define INAT_SEG_REG_FS 6
> +#define INAT_SEG_REG_GS 7
> +

linux-next still reports a warning because of this change:

Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h'
differs from latest kernel version at 'arch/x86/include/asm/inat.h'

Should the same change be applied to the objtool file in the
tip:x86/mpx branch?

Arnd

\
 
 \ /
  Last update: 2017-11-09 12:13    [W:0.167 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site