clean up uclibc patch/config version handling a bit
[openwrt.git] / toolchain / uClibc / patches-0.9.28 / 200-cris-syscall6.patch
1 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
2 --- uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/bits/syscalls.h 2007-05-15 19:45:43.000000000 +0200
3 +++ uClibc-0.9.28.2/libc/sysdeps/linux/cris/bits/syscalls.h 2007-05-15 19:47:20.000000000 +0200
4 @@ -62,6 +62,30 @@
5 return (type) (INLINE_SYSCALL(name, 5, arg1, arg2, arg3, arg4, arg5)); \
6 }
7
8 +#define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
9 + type5,arg5,type6,arg6) \
10 +type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
11 +{ \
12 + register long __a __asm__ ("r10") = (long) arg1; \
13 + register long __b __asm__ ("r11") = (long) arg2; \
14 + register long __c __asm__ ("r12") = (long) arg3; \
15 + register long __d __asm__ ("r13") = (long) arg4; \
16 + register long __n_ __asm__ ("r9") = (__NR_##name); \
17 + __asm__ __volatile__ (".ifnc %0%1%3%4%5,$r10$r9$r11$r12$r13\n\t" \
18 + ".err\n\t" \
19 + ".endif\n\t" \
20 + "move %6,$mof\n\tmove %7,$srp\n\t" \
21 + "break 13" \
22 + : "=r" (__a) \
23 + : "r" (__n_), "0" (__a), "r" (__b), \
24 + "r" (__c), "r" (__d), "g" (arg5), "g" (arg6)\
25 + : "srp"); \
26 + if (__a >= 0) \
27 + return (type) __a; \
28 + __set_errno ( -__a); \
29 + return (type) -1; \
30 +}
31 +
32 #undef INLINE_SYSCALL
33 #define INLINE_SYSCALL(name, nr, args...) \
34 ({ \
This page took 0.042837 seconds and 5 git commands to generate.