Skip to content

Commit 16e617d

Browse files
author
Peter Zijlstra
committed
x86/entry_64: Remove .fixup usage
Place the anonymous .fixup code at the tail of the regular functions. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Josh Poimboeuf <[email protected]> Reviewed-by: Borislav Petkov <[email protected]> Reviewed-by: Lai Jiangshan <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ab0fedc commit 16e617d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

arch/x86/entry/entry_64.S

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -739,13 +739,9 @@ SYM_FUNC_START(asm_load_gs_index)
739739
swapgs
740740
FRAME_END
741741
RET
742-
SYM_FUNC_END(asm_load_gs_index)
743-
EXPORT_SYMBOL(asm_load_gs_index)
744742

745-
_ASM_EXTABLE(.Lgs_change, .Lbad_gs)
746-
.section .fixup, "ax"
747743
/* running with kernelgs */
748-
SYM_CODE_START_LOCAL_NOALIGN(.Lbad_gs)
744+
.Lbad_gs:
749745
swapgs /* switch back to user gs */
750746
.macro ZAP_GS
751747
/* This can't be a string because the preprocessor needs to see it. */
@@ -756,8 +752,11 @@ SYM_CODE_START_LOCAL_NOALIGN(.Lbad_gs)
756752
xorl %eax, %eax
757753
movl %eax, %gs
758754
jmp 2b
759-
SYM_CODE_END(.Lbad_gs)
760-
.previous
755+
756+
_ASM_EXTABLE(.Lgs_change, .Lbad_gs)
757+
758+
SYM_FUNC_END(asm_load_gs_index)
759+
EXPORT_SYMBOL(asm_load_gs_index)
761760

762761
#ifdef CONFIG_XEN_PV
763762
/*

0 commit comments

Comments
 (0)