summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-14 23:14:22 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-14 23:14:22 -0400
commit836ba93d93f901d25e8ed4ac34209cf547d8e217 (patch)
tree5c292d2f9e3fb46f5d898435a1128f35331eb6fe /arch
parent7779dbd2663269b465951189b4f43e70839bc073 (diff)
downloadmusl-836ba93d93f901d25e8ed4ac34209cf547d8e217.tar.gz
__syscall5 inline is having trouble with PIC; just use the function for now
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/bits/syscall.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/i386/bits/syscall.h b/arch/i386/bits/syscall.h
index 16565eee..88cd0d7d 100644
--- a/arch/i386/bits/syscall.h
+++ b/arch/i386/bits/syscall.h
@@ -88,6 +88,7 @@ static inline long __syscall4(long __n, long __a1, long __a2, long __a3, long __
return __ret;
}
+#if 0
static inline long __syscall5(long __n, long __a1, long __a2, long __a3, long __a4, long __a5)
{
unsigned long __ret;
@@ -95,6 +96,12 @@ static inline long __syscall5(long __n, long __a1, long __a2, long __a3, long __
: "=a"(__ret) : "a"(__n), "g"(__a1), "c"(__a2), "d"(__a3), "S"(__a4), "D"(__a5) : "memory");
return __ret;
}
+#else
+static inline long __syscall5(long __n, long __a1, long __a2, long __a3, long __a4, long __a5)
+{
+ return (__syscall)(__n, __a1, __a2, __a3, __a4, __a5);
+}
+#endif
static inline long __syscall6(long __n, long __a1, long __a2, long __a3, long __a4, long __a5, long __a6)
{