summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips/syscalls/pread64.S
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-02-19 20:28:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-19 20:28:34 +0000
commite6c451f5f2e17fccccedaa1c2a90d8d9ba0c1917 (patch)
tree3f2394e5a56dfc6e2f8fde6156121372c1ed1f19 /libc/arch-mips/syscalls/pread64.S
parent44ef37c1b445e864068cdcd885ab3d7b17079ad3 (diff)
parenteae27dc55adca75c2332e4b767ec667acfbbbcb3 (diff)
downloadbionic-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/pread64.S')
-rw-r--r--libc/arch-mips/syscalls/pread64.S16
1 files changed, 9 insertions, 7 deletions
diff --git a/libc/arch-mips/syscalls/pread64.S b/libc/arch-mips/syscalls/pread64.S
index 870b138..9505acf 100644
--- a/libc/arch-mips/syscalls/pread64.S
+++ b/libc/arch-mips/syscalls/pread64.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 pread64
.align 4
@@ -8,16 +10,16 @@
pread64:
.set noreorder
- .cpload $t9
- li $v0, __NR_pread64
+ .cpload t9
+ li v0, __NR_pread64
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 pread64