Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: fusl/src/unistd/mips/pipe.s

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/src/unistd/lseek.c ('k') | fusl/src/unistd/nice.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/unistd/mips/pipe.s
diff --git a/fusl/src/unistd/mips/pipe.s b/fusl/src/unistd/mips/pipe.s
new file mode 100644
index 0000000000000000000000000000000000000000..ba2c39a304da9e5085108f3295857b6902d1c1ad
--- /dev/null
+++ b/fusl/src/unistd/mips/pipe.s
@@ -0,0 +1,20 @@
+.set noreorder
+
+.global pipe
+.type pipe,@function
+pipe:
+ lui $gp, %hi(_gp_disp)
+ addiu $gp, %lo(_gp_disp)
+ addu $gp, $gp, $25
+ li $2, 4042
+ syscall
+ beq $7, $0, 1f
+ nop
+ lw $25, %call16(__syscall_ret)($gp)
+ jr $25
+ subu $4, $0, $2
+1: sw $2, 0($4)
+ sw $3, 4($4)
+ move $2, $0
+ jr $ra
+ nop
« no previous file with comments | « fusl/src/unistd/lseek.c ('k') | fusl/src/unistd/nice.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698