Commit 19c6534d authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

vdso: make vDSO symbol names architecture-specific

This patch moves the enum VDSO_SYMBOL_* and macros VDSO_SYMBOL_*_NAME
to the x86 specific header since different architectures export
different symbols from their vDSOs.
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Looks-good-to: Cyrill Gorcunov <gorcunov@openvz.org>
Reviewed-by: 's avatarChristopher Covington <cov@codeaurora.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9e6a062c
......@@ -9,6 +9,8 @@ struct vdso_symtable;
struct parasite_ctl;
struct vm_area_list;
#define VDSO_SYMBOL_MAX 1
extern int vdso_redirect_calls(void *base_to, void *base_from, struct vdso_symtable *to, struct vdso_symtable *from);
extern int vdso_fill_symtable(char *mem, size_t size,struct vdso_symtable *t);
extern int vdso_remap(char *who, unsigned long from, unsigned long to, size_t size);
......
......@@ -5,6 +5,26 @@
#include "protobuf/vma.pb-c.h"
/*
* This is a minimal amount of symbols
* we should support at the moment.
*/
enum {
VDSO_SYMBOL_GETTIMEOFDAY,
VDSO_SYMBOL_GETCPU,
VDSO_SYMBOL_CLOCK_GETTIME,
VDSO_SYMBOL_TIME,
VDSO_SYMBOL_MAX
};
#define VDSO_SYMBOL_GETTIMEOFDAY_NAME "__vdso_gettimeofday"
#define VDSO_SYMBOL_GETCPU_NAME "__vdso_getcpu"
#define VDSO_SYMBOL_CLOCK_GETTIME_NAME "__vdso_clock_gettime"
#define VDSO_SYMBOL_TIME_NAME "__vdso_time"
struct vdso_symtable;
struct parasite_ctl;
struct vm_area_list;
......
......@@ -9,23 +9,6 @@
#define VDSO_PROT (PROT_READ | PROT_EXEC)
/*
* This is a minimal amount of symbols
* we should support at the moment.
*/
enum {
VDSO_SYMBOL_GETTIMEOFDAY,
VDSO_SYMBOL_GETCPU,
VDSO_SYMBOL_CLOCK_GETTIME,
VDSO_SYMBOL_TIME,
VDSO_SYMBOL_MAX
};
#define VDSO_SYMBOL_GETTIMEOFDAY_NAME "__vdso_gettimeofday"
#define VDSO_SYMBOL_GETCPU_NAME "__vdso_getcpu"
#define VDSO_SYMBOL_CLOCK_GETTIME_NAME "__vdso_clock_gettime"
#define VDSO_SYMBOL_TIME_NAME "__vdso_time"
#define VDSO_BAD_ADDR (-1ul)
#define VDSO_BAD_PFN (-1ull)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment