aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/vdso
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2014-03-20 21:57:18 -0400
committerH. Peter Anvin <hpa@zytor.com>2014-03-20 23:20:08 -0400
commit9e6f450f946d35d585798da268d45c679632fe05 (patch)
tree733e5945b5efc2be040da323ec2c17c1100525d3 /arch/x86/vdso
parentb67e612cef1e5964efc6fa99fb7ad3d31c4db01a (diff)
x86, vdso: Move more vdso definitions into vdso.h
This fixes the Xen build and gets rid of a silly header file. Signed-off-by: Andy Lutomirski <luto@amacapital.net> Cc: Stefani Seibold <stefani@seibold.net> Link: http://lkml.kernel.org/r/1df77311795aff75f5742c787d277518314a38d3.1395366931.git.luto@amacapital.net Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/vdso')
-rw-r--r--arch/x86/vdso/vdso.S2
-rw-r--r--arch/x86/vdso/vdso32-setup.c7
-rw-r--r--arch/x86/vdso/vdso32.S2
-rw-r--r--arch/x86/vdso/vdso_image.h30
-rw-r--r--arch/x86/vdso/vdsox32.S2
-rw-r--r--arch/x86/vdso/vma.c1
6 files changed, 3 insertions, 41 deletions
diff --git a/arch/x86/vdso/vdso.S b/arch/x86/vdso/vdso.S
index c749d15da2e9..be3f23b09af5 100644
--- a/arch/x86/vdso/vdso.S
+++ b/arch/x86/vdso/vdso.S
@@ -1,3 +1,3 @@
1#include "vdso_image.h" 1#include <asm/vdso.h>
2 2
3DEFINE_VDSO_IMAGE(vdso, "arch/x86/vdso/vdso.so") 3DEFINE_VDSO_IMAGE(vdso, "arch/x86/vdso/vdso.so")
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
index b45528ee8e19..791c1cb822c6 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -29,7 +29,6 @@
29#include <asm/fixmap.h> 29#include <asm/fixmap.h>
30#include <asm/hpet.h> 30#include <asm/hpet.h>
31#include <asm/vvar.h> 31#include <asm/vvar.h>
32#include "vdso_image.h"
33 32
34#ifdef CONFIG_COMPAT_VDSO 33#ifdef CONFIG_COMPAT_VDSO
35#define VDSO_DEFAULT 0 34#define VDSO_DEFAULT 0
@@ -42,12 +41,6 @@
42#define arch_setup_additional_pages syscall32_setup_pages 41#define arch_setup_additional_pages syscall32_setup_pages
43#endif 42#endif
44 43
45DECLARE_VDSO_IMAGE(vdso32_int80);
46#ifdef CONFIG_COMPAT
47DECLARE_VDSO_IMAGE(vdso32_syscall);
48#endif
49DECLARE_VDSO_IMAGE(vdso32_sysenter);
50
51/* 44/*
52 * Should the kernel map a VDSO page into processes and pass its 45 * Should the kernel map a VDSO page into processes and pass its
53 * address down to glibc upon exec()? 46 * address down to glibc upon exec()?
diff --git a/arch/x86/vdso/vdso32.S b/arch/x86/vdso/vdso32.S
index cfa6adda110b..018bcd9f97b4 100644
--- a/arch/x86/vdso/vdso32.S
+++ b/arch/x86/vdso/vdso32.S
@@ -1,4 +1,4 @@
1#include "vdso_image.h" 1#include <asm/vdso.h>
2 2
3DEFINE_VDSO_IMAGE(vdso32_int80, "arch/x86/vdso/vdso32-int80.so") 3DEFINE_VDSO_IMAGE(vdso32_int80, "arch/x86/vdso/vdso32-int80.so")
4 4
diff --git a/arch/x86/vdso/vdso_image.h b/arch/x86/vdso/vdso_image.h
deleted file mode 100644
index 1baa6bc517bf..000000000000
--- a/arch/x86/vdso/vdso_image.h
+++ /dev/null
@@ -1,30 +0,0 @@
1#ifndef _VDSO_IMAGE_H
2#define _VDSO_IMAGE_H
3
4#include <asm/page_types.h>
5#include <linux/linkage.h>
6
7#define DEFINE_VDSO_IMAGE(symname, filename) \
8__PAGE_ALIGNED_DATA ; \
9 .globl symname##_start, symname##_end ; \
10 .align PAGE_SIZE ; \
11 symname##_start: ; \
12 .incbin filename ; \
13 symname##_end: ; \
14 .align PAGE_SIZE /* extra data here leaks to userspace. */ ; \
15 \
16.previous ; \
17 \
18 .globl symname##_pages ; \
19 .bss ; \
20 .align 8 ; \
21 .type symname##_pages, @object ; \
22 symname##_pages: ; \
23 .zero (symname##_end - symname##_start + PAGE_SIZE - 1) / PAGE_SIZE * (BITS_PER_LONG / 8) ; \
24 .size symname##_pages, .-symname##_pages
25
26#define DECLARE_VDSO_IMAGE(symname) \
27 extern char symname##_start[], symname##_end[]; \
28 extern struct page *symname##_pages[]
29
30#endif /* _VDSO_IMAGE_H */
diff --git a/arch/x86/vdso/vdsox32.S b/arch/x86/vdso/vdsox32.S
index 19a692778650..f4aa34e7f370 100644
--- a/arch/x86/vdso/vdsox32.S
+++ b/arch/x86/vdso/vdsox32.S
@@ -1,3 +1,3 @@
1#include "vdso_image.h" 1#include <asm/vdso.h>
2 2
3DEFINE_VDSO_IMAGE(vdsox32, "arch/x86/vdso/vdsox32.so") 3DEFINE_VDSO_IMAGE(vdsox32, "arch/x86/vdso/vdsox32.so")
diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
index 6db0bbd876fd..1ad102613127 100644
--- a/arch/x86/vdso/vma.c
+++ b/arch/x86/vdso/vma.c
@@ -15,7 +15,6 @@
15#include <asm/proto.h> 15#include <asm/proto.h>
16#include <asm/vdso.h> 16#include <asm/vdso.h>
17#include <asm/page.h> 17#include <asm/page.h>
18#include "vdso_image.h"
19 18
20#if defined(CONFIG_X86_64) 19#if defined(CONFIG_X86_64)
21unsigned int __read_mostly vdso_enabled = 1; 20unsigned int __read_mostly vdso_enabled = 1;