diff options
Diffstat (limited to 'include/arch/x86_64/asm/vdso.h')
| -rw-r--r-- | include/arch/x86_64/asm/vdso.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/arch/x86_64/asm/vdso.h b/include/arch/x86_64/asm/vdso.h index 8a79d3a2..7f0ea2aa 100644 --- a/include/arch/x86_64/asm/vdso.h +++ b/include/arch/x86_64/asm/vdso.h @@ -3,8 +3,20 @@ struct timespec; -extern int (*__vdso_clock_gettime)(int, struct timespec *); -extern int (*__vdso_getcpu)(unsigned *, unsigned *, void *); -extern int (*__vdso_time)(long *); +#define __VDSO_CLOCK_GETTIME +#define __VDSO_GETCPU +#define __VDSO_TIME + +static int (*__vdso_clock_gettime)(int, struct timespec *) = 0; +static int (*__vdso_getcpu)(unsigned *, unsigned *, void *) = 0; +static int (*__vdso_time)(long *) = 0; + +struct { + const char *name; + void *func; +} __vdso_symtab[] = { { "__vdso_clock_gettime", (void *)&__vdso_clock_gettime }, + { "__vdso_getcpu", (void *)&__vdso_getcpu }, + { "__vdso_time", (void *)&__vdso_time }, + { 0, 0 } }; #endif |
