diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-22 23:27:56 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-22 23:30:32 +0100 |
| commit | 0f30d227497418c6d3bef7d52244407e30454504 (patch) | |
| tree | 0e1ac19623d3268380cf74328cdf643648a2f43c /lib/libc/internal/init/vdso.c | |
| parent | 90dad97fc07f049383903a166631e2c257f9b8c1 (diff) | |
Added c11 threads, fixed some locks and add *_unlocked functions
Diffstat (limited to 'lib/libc/internal/init/vdso.c')
| -rw-r--r-- | lib/libc/internal/init/vdso.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/internal/init/vdso.c b/lib/libc/internal/init/vdso.c index de8d0e2f..73bfb46b 100644 --- a/lib/libc/internal/init/vdso.c +++ b/lib/libc/internal/init/vdso.c @@ -3,7 +3,18 @@ #include <string.h> #include <sys/auxv.h> -void __init_vdso(void) +int (*__vdso_clock_gettime)(int, struct timespec *) = 0; +int (*__vdso_getcpu)(unsigned *, unsigned *, void *) = 0; +int (*__vdso_time)(long *) = 0; + +struct __vdso_sym __vdso_symtab[] = { + { "__vdso_clock_gettime", (void *)&__vdso_clock_gettime }, + { "__vdso_getcpu", (void *)&__vdso_getcpu }, + { "__vdso_time", (void *)&__vdso_time }, + { 0, 0 }, +}; + +void __libc_init_vdso(void) { Elf64_Ehdr *ehdr = (Elf64_Ehdr *)getauxval(AT_SYSINFO_EHDR); |
