x86/gsseg: Move load_gs_index() to its own new header file
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Thu, 12 Jan 2023 07:20:31 +0000 (23:20 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 Jan 2023 12:06:36 +0000 (13:06 +0100)
commitae53fa18703000f507107df43efd1168a0365361
tree465debef68863f87d422789e2e5b53c5a6c99734
parentdf729fb05ae2db52f7de150439392a88ee9d9b4f
x86/gsseg: Move load_gs_index() to its own new header file

GS is a special segment on x86_64, move load_gs_index() to its own new
header file to simplify header inclusion.

No change in functionality.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230112072032.35626-5-xin3.li@intel.com
arch/x86/include/asm/gsseg.h [new file with mode: 0644]
arch/x86/include/asm/mmu_context.h
arch/x86/include/asm/special_insns.h
arch/x86/kernel/paravirt.c
arch/x86/kernel/signal_32.c
arch/x86/kernel/tls.c