diff options
author | Elliott Hughes <enh@google.com> | 2014-02-19 20:28:33 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-02-19 20:28:34 +0000 |
commit | e6c451f5f2e17fccccedaa1c2a90d8d9ba0c1917 (patch) | |
tree | 3f2394e5a56dfc6e2f8fde6156121372c1ed1f19 /libc/arch-mips/syscalls/timerfd_gettime.S | |
parent | 44ef37c1b445e864068cdcd885ab3d7b17079ad3 (diff) | |
parent | eae27dc55adca75c2332e4b767ec667acfbbbcb3 (diff) | |
download | bionic-e6c451f5f2e17fccccedaa1c2a90d8d9ba0c1917.zip bionic-e6c451f5f2e17fccccedaa1c2a90d8d9ba0c1917.tar.gz bionic-e6c451f5f2e17fccccedaa1c2a90d8d9ba0c1917.tar.bz2 |
Merge "Make mips generated assembler more like the mips64 stuff."
Diffstat (limited to 'libc/arch-mips/syscalls/timerfd_gettime.S')
-rw-r--r-- | libc/arch-mips/syscalls/timerfd_gettime.S | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libc/arch-mips/syscalls/timerfd_gettime.S b/libc/arch-mips/syscalls/timerfd_gettime.S index b38c2d4..d8165dc 100644 --- a/libc/arch-mips/syscalls/timerfd_gettime.S +++ b/libc/arch-mips/syscalls/timerfd_gettime.S @@ -1,6 +1,8 @@ /* Generated by gensyscalls.py. Do not edit. */ #include <asm/unistd.h> +#include <machine/asm.h> +#include <machine/regdef.h> .text .globl timerfd_gettime .align 4 @@ -8,16 +10,16 @@ timerfd_gettime: .set noreorder - .cpload $t9 - li $v0, __NR_timerfd_gettime + .cpload t9 + li v0, __NR_timerfd_gettime syscall - bnez $a3, 1f - move $a0, $v0 - j $ra + bnez a3, 1f + move a0, v0 + j ra nop 1: - la $t9,__set_errno - j $t9 + la t9,__set_errno + j t9 nop .set reorder .end timerfd_gettime |