Use VDSO for clock_gettime(2) and gettimeofday(2).

Bug: 15387103
Change-Id: Ifc3608ea65060c1dc38120b10b6e79874f182a36
This commit is contained in:
Elliott Hughes
2014-07-15 16:53:13 -07:00
parent 770d0f6177
commit 625993dfbb
14 changed files with 250 additions and 22 deletions

View File

@@ -0,0 +1,16 @@
/* Generated by gensyscalls.py. Do not edit. */
#include <private/bionic_asm.h>
ENTRY(__clock_gettime)
movl $__NR_clock_gettime, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
negl %eax
movl %eax, %edi
call __set_errno
1:
ret
END(__clock_gettime)
.hidden __clock_gettime