aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/processor.h')
-rw-r--r--include/asm-x86/processor.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index e6fa06fee72a..72740c6f1109 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -435,6 +435,13 @@ static inline void native_load_sp0(struct tss_struct *tss,
435#endif 435#endif
436} 436}
437 437
438static inline void native_swapgs(void)
439{
440#ifdef CONFIG_X86_64
441 asm volatile("swapgs" ::: "memory");
442#endif
443}
444
438#ifdef CONFIG_PARAVIRT 445#ifdef CONFIG_PARAVIRT
439#include <asm/paravirt.h> 446#include <asm/paravirt.h>
440#else 447#else
@@ -456,6 +463,7 @@ static inline void load_sp0(struct tss_struct *tss,
456} 463}
457 464
458#define set_iopl_mask native_set_iopl_mask 465#define set_iopl_mask native_set_iopl_mask
466#define SWAPGS swapgs
459#endif /* CONFIG_PARAVIRT */ 467#endif /* CONFIG_PARAVIRT */
460 468
461/* 469/*