blob: e4b240930c8395420cffa5c5e09b9b1f46677771 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07004
Dan Albertbc9f9f22014-08-08 15:19:20 -07005 .hidden __set_errno
6
Elliott Hughes625993d2014-07-15 16:53:13 -07007ENTRY(__gettimeofday)
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07008 movl $__NR_gettimeofday, %eax
9 syscall
10 cmpq $-MAX_ERRNO, %rax
11 jb 1f
12 negl %eax
13 movl %eax, %edi
Dan Albert3726f9c2014-08-08 15:15:29 -070014 call __set_errno
Elliott Hughese4ffd9f2013-10-01 13:29:43 -0700151:
16 ret
Elliott Hughes625993d2014-07-15 16:53:13 -070017END(__gettimeofday)
18.hidden __gettimeofday