uClibc: fix syscall() for syscalls with 6 arguments on PowerPC
authorJohn Crispin <john@openwrt.org>
Thu, 12 Mar 2015 10:07:01 +0000 (10:07 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 12 Mar 2015 10:07:01 +0000 (10:07 +0000)
Patch from the uClibc master.

Fixes the package fastd on PowerPC.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 44694

toolchain/uClibc/patches-0.9.33.2/470-powerpc_syscall6.patch [new file with mode: 0644]

diff --git a/toolchain/uClibc/patches-0.9.33.2/470-powerpc_syscall6.patch b/toolchain/uClibc/patches-0.9.33.2/470-powerpc_syscall6.patch
new file mode 100644 (file)
index 0000000..9511dcc
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/libc/sysdeps/linux/powerpc/syscall.S
++++ b/libc/sysdeps/linux/powerpc/syscall.S
+@@ -30,6 +30,7 @@ syscall:
+       mr 5,6
+       mr 6,7
+       mr 7,8
++      mr 8,9
+       sc
+       bnslr;