lkml.org 
[lkml]   [2022]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2 6/6] x86/gsseg: use the LKGS instruction if available for load_gs_index()
Date
> > +       asm_inline volatile("1:\n"
> > + ALTERNATIVE("call asm_load_gs_index\n",
> > + _ASM_BYTES(0x3e) LKGS_DI,
> > + X86_FEATURE_LKGS)
> > + _ASM_EXTABLE_TYPE_REG(1b, 1b, EX_TYPE_ZERO_REG,
> %k[sel])
> > + : ASM_CALL_CONSTRAINT
> > + : [sel] "D" (sel)
>
> DI needs to be marked as input and output (+D), since the exception handler
> modifies it.

Good catch, I accidently removed it from the first version, will add it back.
Xin
\
 
 \ /
  Last update: 2022-10-11 19:13    [W:0.057 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site