aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-30 07:30:42 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:42 -0500
commit0c2f51a7d2546f65e4198cccd6a56e2a8b857677 (patch)
tree6b2b39b317f4799faf64328353ba796ae8827ac5 /arch/x86
parent108b545137b03ec1d6a5765017d57f86056bf57c (diff)
x86 vDSO: arch/x86/vdso/vdso32
This moves the i386 vDSO sources into arch/x86/vdso/vdso32/, a new directory. This patch is a pure renaming, but paves the way for consolidating the vDSO build logic. Signed-off-by: Roland McGrath <roland@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/ia32/vsyscall-sigreturn.S3
-rw-r--r--arch/x86/kernel/Makefile_323
-rw-r--r--arch/x86/vdso/vdso32/int80.S (renamed from arch/x86/kernel/vsyscall-int80_32.S)2
-rw-r--r--arch/x86/vdso/vdso32/note.S (renamed from arch/x86/kernel/vsyscall-note_32.S)2
-rw-r--r--arch/x86/vdso/vdso32/sigreturn.S (renamed from arch/x86/kernel/vsyscall-sigreturn_32.S)4
-rw-r--r--arch/x86/vdso/vdso32/sysenter.S (renamed from arch/x86/kernel/vsyscall-sysenter_32.S)2
6 files changed, 9 insertions, 7 deletions
diff --git a/arch/x86/ia32/vsyscall-sigreturn.S b/arch/x86/ia32/vsyscall-sigreturn.S
index b383be00baec..295eecf91f17 100644
--- a/arch/x86/ia32/vsyscall-sigreturn.S
+++ b/arch/x86/ia32/vsyscall-sigreturn.S
@@ -139,5 +139,4 @@ __kernel_rt_sigreturn:
139 .align 4 139 .align 4
140.LENDFDE3: 140.LENDFDE3:
141 141
142#include "../../x86/kernel/vsyscall-note_32.S" 142#include "../vdso/vdso32/note.S"
143
diff --git a/arch/x86/kernel/Makefile_32 b/arch/x86/kernel/Makefile_32
index eb2da53578d7..f7c1c1c88dda 100644
--- a/arch/x86/kernel/Makefile_32
+++ b/arch/x86/kernel/Makefile_32
@@ -56,6 +56,9 @@ $(obj)/vsyscall_32.o: $(obj)/vsyscall-int80_32.so $(obj)/vsyscall-sysenter_32.so
56targets += $(foreach F,int80 sysenter,vsyscall-$F_32.o vsyscall-$F_32.so) 56targets += $(foreach F,int80 sysenter,vsyscall-$F_32.o vsyscall-$F_32.so)
57targets += vsyscall-note_32.o vsyscall_32.lds 57targets += vsyscall-note_32.o vsyscall_32.lds
58 58
59$(obj)/vsyscall-%_32.o: $(src)/../vdso/vdso32/%.S
60 $(call if_changed_dep,as_o_S)
61
59# The DSO images are built using a special linker script. 62# The DSO images are built using a special linker script.
60quiet_cmd_syscall = SYSCALL $@ 63quiet_cmd_syscall = SYSCALL $@
61 cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \ 64 cmd_syscall = $(CC) -m elf_i386 -nostdlib $(SYSCFLAGS_$(@F)) \
diff --git a/arch/x86/kernel/vsyscall-int80_32.S b/arch/x86/vdso/vdso32/int80.S
index 103cab6aa7c0..3c8e4c62ace3 100644
--- a/arch/x86/kernel/vsyscall-int80_32.S
+++ b/arch/x86/vdso/vdso32/int80.S
@@ -50,4 +50,4 @@ __kernel_vsyscall:
50/* 50/*
51 * Get the common code for the sigreturn entry points. 51 * Get the common code for the sigreturn entry points.
52 */ 52 */
53#include "vsyscall-sigreturn_32.S" 53#include "sigreturn.S"
diff --git a/arch/x86/kernel/vsyscall-note_32.S b/arch/x86/vdso/vdso32/note.S
index fcf376a37f79..0cf934f2633e 100644
--- a/arch/x86/kernel/vsyscall-note_32.S
+++ b/arch/x86/vdso/vdso32/note.S
@@ -33,7 +33,7 @@ ELFNOTE_END
33 * at boot time we set VDSO_NOTE_NONEGSEG_BIT if running under Xen. 33 * at boot time we set VDSO_NOTE_NONEGSEG_BIT if running under Xen.
34 */ 34 */
35 35
36#include "../../x86/xen/vdso.h" /* Defines VDSO_NOTE_NONEGSEG_BIT. */ 36#include "../../xen/vdso.h" /* Defines VDSO_NOTE_NONEGSEG_BIT. */
37 37
38 .globl VDSO_NOTE_MASK 38 .globl VDSO_NOTE_MASK
39ELFNOTE_START(GNU, 2, "a") 39ELFNOTE_START(GNU, 2, "a")
diff --git a/arch/x86/kernel/vsyscall-sigreturn_32.S b/arch/x86/vdso/vdso32/sigreturn.S
index e939253ad654..778f4649e32f 100644
--- a/arch/x86/kernel/vsyscall-sigreturn_32.S
+++ b/arch/x86/vdso/vdso32/sigreturn.S
@@ -70,9 +70,9 @@ __kernel_rt_sigreturn:
70 be the value of the stack pointer in the caller. This means 70 be the value of the stack pointer in the caller. This means
71 that we must define the CFA of this body of code to be the 71 that we must define the CFA of this body of code to be the
72 saved value of the stack pointer in the sigcontext. Which 72 saved value of the stack pointer in the sigcontext. Which
73 also means that there is no fixed relation to the other 73 also means that there is no fixed relation to the other
74 saved registers, which means that we must use DW_CFA_expression 74 saved registers, which means that we must use DW_CFA_expression
75 to compute their addresses. It also means that when we 75 to compute their addresses. It also means that when we
76 adjust the stack with the popl, we have to do it all over again. */ 76 adjust the stack with the popl, we have to do it all over again. */
77 77
78#define do_cfa_expr(offset) \ 78#define do_cfa_expr(offset) \
diff --git a/arch/x86/kernel/vsyscall-sysenter_32.S b/arch/x86/vdso/vdso32/sysenter.S
index ed879bf42995..4b98fc41d3e0 100644
--- a/arch/x86/kernel/vsyscall-sysenter_32.S
+++ b/arch/x86/vdso/vdso32/sysenter.S
@@ -119,4 +119,4 @@ SYSENTER_RETURN:
119/* 119/*
120 * Get the common code for the sigreturn entry points. 120 * Get the common code for the sigreturn entry points.
121 */ 121 */
122#include "vsyscall-sigreturn_32.S" 122#include "sigreturn.S"