Skip to content

Commit 00398a0

Browse files
author
Ingo Molnar
committed
x86/asm/entry: Move the vsyscall code to arch/x86/entry/vsyscall/
The vsyscall code is entry code too, so move it to arch/x86/entry/vsyscall/. Cc: Borislav Petkov <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 1f57d5d commit 00398a0

File tree

9 files changed

+12
-6
lines changed

9 files changed

+12
-6
lines changed

arch/x86/entry/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#
22
# Makefile for the x86 low level entry code
33
#
4-
obj-y := entry_$(BITS).o thunk_$(BITS).o
4+
obj-y := entry_$(BITS).o thunk_$(BITS).o syscall_$(BITS).o
5+
56
obj-y += vdso/
7+
obj-y += vsyscall/
68

7-
obj-$(CONFIG_IA32_EMULATION) += ia32entry.o
9+
obj-$(CONFIG_IA32_EMULATION) += ia32entry.o syscall_32.o
810

File renamed without changes.
File renamed without changes.

arch/x86/entry/vsyscall/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Makefile for the x86 low level vsyscall code
3+
#
4+
obj-y := vsyscall_gtod.o
5+
6+
obj-$(CONFIG_X86_VSYSCALL_EMULATION) += vsyscall_64.o vsyscall_emu_64.o
7+
File renamed without changes.

arch/x86/kernel/vsyscall_trace.h renamed to arch/x86/entry/vsyscall/vsyscall_trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ TRACE_EVENT(emulate_vsyscall,
2424
#endif
2525

2626
#undef TRACE_INCLUDE_PATH
27-
#define TRACE_INCLUDE_PATH ../../arch/x86/kernel
27+
#define TRACE_INCLUDE_PATH ../../arch/x86/entry/vsyscall/
2828
#define TRACE_INCLUDE_FILE vsyscall_trace
2929
#include <trace/define_trace.h>

arch/x86/kernel/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ obj-y += probe_roms.o
3131
obj-$(CONFIG_X86_32) += i386_ksyms_32.o
3232
obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o
3333
obj-$(CONFIG_X86_64) += mcount_64.o
34-
obj-y += syscall_$(BITS).o vsyscall_gtod.o
35-
obj-$(CONFIG_IA32_EMULATION) += syscall_32.o
36-
obj-$(CONFIG_X86_VSYSCALL_EMULATION) += vsyscall_64.o vsyscall_emu_64.o
3734
obj-$(CONFIG_X86_ESPFIX64) += espfix_64.o
3835
obj-$(CONFIG_SYSFS) += ksysfs.o
3936
obj-y += bootflag.o e820.o

0 commit comments

Comments
 (0)