x86: use linker to offset symbols by __per_cpu_load
Impact: cleanup and bug fix Use the linker to create symbols for certain per-cpu variables that are offset by __per_cpu_load. This allows the removal of the runtime fixup of the GDT pointer, which fixes a bug with resume reported by Jiri Slaby. Reported-by:Jiri Slaby <jirislaby@gmail.com> Signed-off-by:
Brian Gerst <brgerst@gmail.com> Acked-by:
Jiri Slaby <jirislaby@gmail.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- arch/x86/include/asm/percpu.h 22 additions, 0 deletionsarch/x86/include/asm/percpu.h
- arch/x86/include/asm/processor.h 2 additions, 0 deletionsarch/x86/include/asm/processor.h
- arch/x86/kernel/cpu/common.c 1 addition, 5 deletionsarch/x86/kernel/cpu/common.c
- arch/x86/kernel/head_64.S 2 additions, 19 deletionsarch/x86/kernel/head_64.S
- arch/x86/kernel/vmlinux_64.lds.S 8 additions, 0 deletionsarch/x86/kernel/vmlinux_64.lds.S
Loading
Please register or sign in to comment