bionic/libc/arch-arm64/syscalls/__clock_gettime.S
Elliott Hughes 625993dfbb Use VDSO for clock_gettime(2) and gettimeofday(2).
Bug: 15387103
Change-Id: Ifc3608ea65060c1dc38120b10b6e79874f182a36
2014-07-16 14:27:43 -07:00

16 lines
290 B
ArmAsm

/* Generated by gensyscalls.py. Do not edit. */
#include <private/bionic_asm.h>
ENTRY(__clock_gettime)
mov x8, __NR_clock_gettime
svc #0
cmn x0, #(MAX_ERRNO + 1)
cneg x0, x0, hi
b.hi __set_errno
ret
END(__clock_gettime)
.hidden __clock_gettime