From 12e9b4faf68a1a02ebf5ad69c03ac10f170f14cb Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 11 Oct 2012 22:47:07 -0400 Subject: i386 vsyscall support (vdso-provided sysenter/syscall instruction based) this doubles the performance of the fastest syscalls on the atom I tested it on; improvement is reportedly much more dramatic on worst-case cpus. cannot be used for cancellable syscalls. --- src/env/__libc_start_main.c | 3 ++ src/internal/i386/syscall.s | 74 +++++++++++++++++++++++++++++++++++---------- src/internal/libc.c | 1 + 3 files changed, 62 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c index e350fdb8..ee10b0de 100644 --- a/src/env/__libc_start_main.c +++ b/src/env/__libc_start_main.c @@ -6,6 +6,8 @@ void __init_security(size_t *); #define AUX_CNT 38 +extern size_t __hwcap, __sysinfo; + void __init_libc(char **envp) { size_t i, *auxv, aux[AUX_CNT] = { 0 }; @@ -14,6 +16,7 @@ void __init_libc(char **envp) libc.auxv = auxv = (void *)(envp+i+1); for (i=0; auxv[i]; i+=2) if (auxv[i]