From ce0931384ee0f425d9e1ef973b10dd5505511660 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 11 Mar 2015 18:35:54 +0100 Subject: [PATCH] uClibc: fix syscall() for syscalls with 6 arguments on PowerPC --- ...syscalls-with-6-arguments-on-PowerPC.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/openwrt/0022-uClibc-fix-syscall-for-syscalls-with-6-arguments-on-PowerPC.patch diff --git a/patches/openwrt/0022-uClibc-fix-syscall-for-syscalls-with-6-arguments-on-PowerPC.patch b/patches/openwrt/0022-uClibc-fix-syscall-for-syscalls-with-6-arguments-on-PowerPC.patch new file mode 100644 index 00000000..50332a2b --- /dev/null +++ b/patches/openwrt/0022-uClibc-fix-syscall-for-syscalls-with-6-arguments-on-PowerPC.patch @@ -0,0 +1,24 @@ +From: Matthias Schiffer +Date: Wed, 11 Mar 2015 18:30:54 +0100 +Subject: uClibc: fix syscall() for syscalls with 6 arguments on PowerPC + +Patch from the uClibc master. + +Fixes the package fastd on PowerPC. + +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 +index 0000000..9511dcc +--- /dev/null ++++ b/toolchain/uClibc/patches-0.9.33.2/470-powerpc_syscall6.patch +@@ -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; ++