Re: [PATCH v4 04/13] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2019-01-17 Thread Bae, Chang Seok
> On Jan 16, 2019, at 21:09, Andi Kleen wrote: > >> +#ifdef CONFIG_X86_64 >> + >> +#include >> + >> +.macro RDGSBASE opd > > The caller can now use the assembler instructions directly, so the macros > are not needed anymore. > > -Andi Yeah, you’re right, since GAS is included in the

Re: [PATCH v4 04/13] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2019-01-16 Thread Andi Kleen
> +#ifdef CONFIG_X86_64 > + > +#include > + > +.macro RDGSBASE opd The caller can now use the assembler instructions directly, so the macros are not needed anymore. -Andi

[PATCH v4 04/13] x86/fsgsbase/64: Add intrinsics/macros for FSGSBASE instructions

2019-01-16 Thread Chang S. Bae
From: Andi Kleen Add C intrinsics and assembler macros for the new FSBASE and GSBASE instructions. Very straight forward. Used in followon patches. [ luto: Rename the variables from FS and GS to FSBASE and GSBASE and make safe to include on 32-bit kernels. ] v2: Use __always_inline [