diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:24:54 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:24:54 +0100 |
| commit | 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 (patch) | |
| tree | 489046ce167b8b20d205f87f4ae1f4b680c19b43 /include/arch/x86_64/asm | |
| parent | 0d5bffe9d2caadc1215c875e560c52bca5161c54 (diff) | |
Add getauxval and cleanup libc startup
Diffstat (limited to 'include/arch/x86_64/asm')
| -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 |
