From 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 18:24:54 +0100 Subject: Add getauxval and cleanup libc startup --- lib/libc/arch/x86_64/clock_gettime.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 lib/libc/arch/x86_64/clock_gettime.c (limited to 'lib/libc/arch/x86_64/clock_gettime.c') diff --git a/lib/libc/arch/x86_64/clock_gettime.c b/lib/libc/arch/x86_64/clock_gettime.c deleted file mode 100644 index c05926fa..00000000 --- a/lib/libc/arch/x86_64/clock_gettime.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "asm/unistd_64.h" // for __NR_clock_gettime - -#include // for __vdso_clock_gettime -#include // for __syscall_2, syscall -#include // for clock_gettime, clockid_t - -int clock_gettime(clockid_t clock_id, struct timespec *tp) -{ -#if defined(__x86_64__) - if (__vdso_clock_gettime) - return __vdso_clock_gettime(clock_id, tp); -#endif - - return syscall(clock_gettime, clock_id, tp); -} -- cgit v1.2.3