summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-03-06 17:41:56 +0000
committerRich Felker <dalias@aerifal.cx>2016-03-06 17:41:56 +0000
commit83933573aff71a5d178ab71912f177d2d844e63e (patch)
tree3c7057d0c83c0030b8a6c0405f1b2797fbbcf450 /src/unistd
parent71392a91c333d47b6b3c8f99c897e3b5a7eb6d58 (diff)
downloadmusl-83933573aff71a5d178ab71912f177d2d844e63e.tar.gz
musl-83933573aff71a5d178ab71912f177d2d844e63e.tar.bz2
musl-83933573aff71a5d178ab71912f177d2d844e63e.tar.xz
musl-83933573aff71a5d178ab71912f177d2d844e63e.zip
add mips64 port
patch by Mahesh Bodapati and Jaydeep Patil of Imagination Technologies.
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/mips64/pipe.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/unistd/mips64/pipe.s b/src/unistd/mips64/pipe.s
new file mode 100644
index 00000000..f8a27dcc
--- /dev/null
+++ b/src/unistd/mips64/pipe.s
@@ -0,0 +1,19 @@
+.set noreorder
+.global pipe
+.type pipe,@function
+pipe:
+ lui $3, %hi(%neg(%gp_rel(pipe)))
+ daddiu $3, $3, %lo(%neg(%gp_rel(pipe)))
+ daddu $3, $3, $25
+ li $2, 5021
+ syscall
+ beq $7, $0, 1f
+ nop
+ ld $25, %got_disp(__syscall_ret)($3)
+ jr $25
+ dsubu $4, $0, $2
+1: sw $2, 0($4)
+ sw $3, 4($4)
+ move $2, $0
+ jr $ra
+ nop