diff options
author | Android Code Review <code-review@android.com> | 2009-09-20 23:39:18 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2009-09-20 23:39:18 -0700 |
commit | 4e30c09e57a0351daff70f6657794569445be21c (patch) | |
tree | 9b429261a70ccc3bddddb3d46ffbec1e36f75971 /libc/arch-sh/syscalls/clock_gettime.S | |
parent | 5632aeb83862a50e39dae9b7da2d7e2e5a8cb0d3 (diff) | |
parent | 336efb5267e465ac52d78327d37f79553b3f0584 (diff) | |
download | bionic-4e30c09e57a0351daff70f6657794569445be21c.zip bionic-4e30c09e57a0351daff70f6657794569445be21c.tar.gz bionic-4e30c09e57a0351daff70f6657794569445be21c.tar.bz2 |
Merge change 10538
* changes:
added syscalls for SuperH which automatically generate by gensyscalls.py
Diffstat (limited to 'libc/arch-sh/syscalls/clock_gettime.S')
-rw-r--r-- | libc/arch-sh/syscalls/clock_gettime.S | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libc/arch-sh/syscalls/clock_gettime.S b/libc/arch-sh/syscalls/clock_gettime.S new file mode 100644 index 0000000..67952a6 --- /dev/null +++ b/libc/arch-sh/syscalls/clock_gettime.S @@ -0,0 +1,32 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type clock_gettime, @function + .globl clock_gettime + .align 4 + +clock_gettime: + + /* invoke trap */ + mov.l 0f, r3 /* trap num */ + trapa #(2 + 0x10) + + /* check return value */ + cmp/pz r0 + bt __NR_clock_gettime_end + + /* keep error number */ + sts.l pr, @-r15 + mov.l 1f, r1 + jsr @r1 + mov r0, r4 + lds.l @r15+, pr + +__NR_clock_gettime_end: + rts + nop + + .align 2 +0: .long __NR_clock_gettime +1: .long __set_syscall_errno |