summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-04-18 05:19:13 +0000
committerRich Felker <dalias@aerifal.cx>2016-04-18 05:19:13 +0000
commit5972c4a4113e2a4de5edf519faf15296ae1eb3ed (patch)
tree6e808f23bb96a9b8a82eb505e2a719f4f42a758d /src/internal
parent6d99ad91e869aab35a4d76d34c3c9eaf29482bad (diff)
downloadmusl-5972c4a4113e2a4de5edf519faf15296ae1eb3ed.tar.gz
add mips n32 port (ILP32 ABI for mips64)
based on patch submitted by Jaydeep Patil, with minor changes.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/mipsn32/syscall.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/internal/mipsn32/syscall.s b/src/internal/mipsn32/syscall.s
new file mode 100644
index 00000000..510a6fa4
--- /dev/null
+++ b/src/internal/mipsn32/syscall.s
@@ -0,0 +1,19 @@
+.set noreorder
+.global __syscall
+.hidden __syscall
+.type __syscall,@function
+__syscall:
+ move $2, $4
+ move $4, $5
+ move $5, $6
+ move $6, $7
+ move $7, $8
+ move $8, $9
+ move $9, $10
+ move $10, $11
+ syscall
+ beq $7, $0, 1f
+ nop
+ subu $2, $0, $2
+1: jr $ra
+ nop