The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | /* autogenerated by gensyscalls.py */ |
| 2 | #include <sys/linux-syscalls.h> |
| 3 | |
| 4 | .text |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 5 | .type __timer_gettime, @function |
| 6 | .globl __timer_gettime |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 7 | .align 4 |
| 8 | |
The Android Open Source Project | 4e468ed | 2008-12-17 18:03:48 -0800 | [diff] [blame] | 9 | __timer_gettime: |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 10 | pushl %ebx |
| 11 | pushl %ecx |
| 12 | mov 12(%esp), %ebx |
| 13 | mov 16(%esp), %ecx |
| 14 | movl $__NR_timer_gettime, %eax |
| 15 | int $0x80 |
| 16 | cmpl $-129, %eax |
| 17 | jb 1f |
| 18 | negl %eax |
| 19 | pushl %eax |
| 20 | call __set_errno |
| 21 | addl $4, %esp |
| 22 | orl $-1, %eax |
| 23 | 1: |
| 24 | popl %ecx |
| 25 | popl %ebx |
| 26 | ret |