diff options
author | Ralph Hempel <ralph.hempel@lantiq.com> | 2008-01-27 17:59:20 +0000 |
---|---|---|
committer | Ralph Hempel <ralph.hempel@lantiq.com> | 2008-01-27 17:59:20 +0000 |
commit | 6614ecc1103872abdd820554b94105d2eb7c13c9 (patch) | |
tree | 953bd27bc2fe65a173b77f4ddb89d3afa800d249 /toolchain/uClibc/patches/0.9.28.2/200-cris-syscall6.patch | |
parent | 85f1b7089753c65449a8dece811ba30410ad0aef (diff) | |
download | upstream-6614ecc1103872abdd820554b94105d2eb7c13c9.tar.gz upstream-6614ecc1103872abdd820554b94105d2eb7c13c9.tar.bz2 upstream-6614ecc1103872abdd820554b94105d2eb7c13c9.zip |
add uClibc version 0.9.28.2, 0.9.28.3 and snapshots for development purpose (and already deployed evaluation boards)
the version 0.9.29 is still the default version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10282 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc/patches/0.9.28.2/200-cris-syscall6.patch')
-rw-r--r-- | toolchain/uClibc/patches/0.9.28.2/200-cris-syscall6.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/0.9.28.2/200-cris-syscall6.patch b/toolchain/uClibc/patches/0.9.28.2/200-cris-syscall6.patch new file mode 100644 index 0000000000..8ecbab5c33 --- /dev/null +++ b/toolchain/uClibc/patches/0.9.28.2/200-cris-syscall6.patch @@ -0,0 +1,34 @@ +diff -urN uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/bits/syscalls.h uClibc-0.9.28.2/libc/sysdeps/linux/cris/bits/syscalls.h +--- uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/bits/syscalls.h 2007-05-15 19:45:43.000000000 +0200 ++++ uClibc-0.9.28.2/libc/sysdeps/linux/cris/bits/syscalls.h 2007-05-15 19:47:20.000000000 +0200 +@@ -62,6 +62,30 @@ + return (type) (INLINE_SYSCALL(name, 5, arg1, arg2, arg3, arg4, arg5)); \ + } + ++#define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \ ++ type5,arg5,type6,arg6) \ ++type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \ ++{ \ ++ register long __a __asm__ ("r10") = (long) arg1; \ ++ register long __b __asm__ ("r11") = (long) arg2; \ ++ register long __c __asm__ ("r12") = (long) arg3; \ ++ register long __d __asm__ ("r13") = (long) arg4; \ ++ register long __n_ __asm__ ("r9") = (__NR_##name); \ ++ __asm__ __volatile__ (".ifnc %0%1%3%4%5,$r10$r9$r11$r12$r13\n\t" \ ++ ".err\n\t" \ ++ ".endif\n\t" \ ++ "move %6,$mof\n\tmove %7,$srp\n\t" \ ++ "break 13" \ ++ : "=r" (__a) \ ++ : "r" (__n_), "0" (__a), "r" (__b), \ ++ "r" (__c), "r" (__d), "g" (arg5), "g" (arg6)\ ++ : "srp"); \ ++ if (__a >= 0) \ ++ return (type) __a; \ ++ __set_errno ( -__a); \ ++ return (type) -1; \ ++} ++ + #undef INLINE_SYSCALL + #define INLINE_SYSCALL(name, nr, args...) \ + ({ \ |