toolchain/kernel-headers: remove ancient (and unused) patches
This commit is contained in:
parent
13ba121cdb
commit
d141a6985a
File diff suppressed because it is too large
Load Diff
@ -1,75 +0,0 @@
|
||||
diff -urN linux-libc-headers-2.6.11.0/include/asm-mips/inst.h linux-libc-headers-2.6.11.0-nptl/include/asm-mips/inst.h
|
||||
--- linux-libc-headers-2.6.11.0/include/asm-mips/inst.h 2004-10-31 13:54:20.000000000 -0600
|
||||
+++ linux-libc-headers-2.6.11.0-nptl/include/asm-mips/inst.h 2005-05-04 23:15:45.890613280 -0500
|
||||
@@ -28,7 +28,7 @@
|
||||
sdl_op, sdr_op, swr_op, cache_op,
|
||||
ll_op, lwc1_op, lwc2_op, pref_op,
|
||||
lld_op, ldc1_op, ldc2_op, ld_op,
|
||||
- sc_op, swc1_op, swc2_op, major_3b_op, /* Opcode 0x3b is unused */
|
||||
+ sc_op, swc1_op, swc2_op, rdhwr_op,
|
||||
scd_op, sdc1_op, sdc2_op, sd_op
|
||||
};
|
||||
|
||||
diff -urN linux-libc-headers-2.6.11.0/include/asm-mips/unistd.h linux-libc-headers-2.6.11.0-nptl/include/asm-mips/unistd.h
|
||||
--- linux-libc-headers-2.6.11.0/include/asm-mips/unistd.h 2005-01-08 08:02:51.000000000 -0600
|
||||
+++ linux-libc-headers-2.6.11.0-nptl/include/asm-mips/unistd.h 2005-05-04 23:16:48.240229738 -0500
|
||||
@@ -303,16 +303,17 @@
|
||||
#define __NR_add_key (__NR_Linux + 280)
|
||||
#define __NR_request_key (__NR_Linux + 281)
|
||||
#define __NR_keyctl (__NR_Linux + 282)
|
||||
+#define __NR_set_thread_area (__NR_Linux + 283)
|
||||
|
||||
/*
|
||||
* Offset of the last Linux o32 flavoured syscall
|
||||
*/
|
||||
-#define __NR_Linux_syscalls 282
|
||||
+#define __NR_Linux_syscalls 283
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
|
||||
|
||||
#define __NR_O32_Linux 4000
|
||||
-#define __NR_O32_Linux_syscalls 282
|
||||
+#define __NR_O32_Linux_syscalls 283
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI64
|
||||
|
||||
@@ -562,16 +563,17 @@
|
||||
#define __NR_add_key (__NR_Linux + 239)
|
||||
#define __NR_request_key (__NR_Linux + 240)
|
||||
#define __NR_keyctl (__NR_Linux + 241)
|
||||
+#define __NR_set_thread_area (__NR_Linux + 242)
|
||||
|
||||
/*
|
||||
* Offset of the last Linux 64-bit flavoured syscall
|
||||
*/
|
||||
-#define __NR_Linux_syscalls 241
|
||||
+#define __NR_Linux_syscalls 242
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
|
||||
|
||||
#define __NR_64_Linux 5000
|
||||
-#define __NR_64_Linux_syscalls 241
|
||||
+#define __NR_64_Linux_syscalls 242
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
|
||||
@@ -825,16 +827,17 @@
|
||||
#define __NR_add_key (__NR_Linux + 243)
|
||||
#define __NR_request_key (__NR_Linux + 244)
|
||||
#define __NR_keyctl (__NR_Linux + 245)
|
||||
+#define __NR_set_thread_area (__NR_Linux + 246)
|
||||
|
||||
/*
|
||||
* Offset of the last N32 flavoured syscall
|
||||
*/
|
||||
-#define __NR_Linux_syscalls 245
|
||||
+#define __NR_Linux_syscalls 246
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
|
||||
|
||||
#define __NR_N32_Linux 6000
|
||||
-#define __NR_N32_Linux_syscalls 245
|
||||
+#define __NR_N32_Linux_syscalls 246
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
@ -1,18 +0,0 @@
|
||||
--- linux/include/linux/netfilter_ipv4/ip_nat.h.orig 2005-03-21 16:18:40.000000000 -0700
|
||||
+++ linux/include/linux/netfilter_ipv4/ip_nat.h 2005-03-21 16:23:54.000000000 -0700
|
||||
@@ -66,6 +66,15 @@
|
||||
struct ip_conntrack_manip manip;
|
||||
};
|
||||
|
||||
+/* For backwards compat: don't use in modern code. */
|
||||
+struct ip_nat_multi_range_compat
|
||||
+{
|
||||
+ unsigned int rangesize; /* Must be 1. */
|
||||
+
|
||||
+ /* hangs off end. */
|
||||
+ struct ip_nat_range range[1];
|
||||
+};
|
||||
+
|
||||
#define ip_nat_multi_range ip_nat_multi_range_compat
|
||||
|
||||
#endif
|
@ -1,166 +0,0 @@
|
||||
--- linux-libc-headers-2.6.12.0/include/asm-arm/unistd.h 2005-07-06 03:17:41.000000000 +0300
|
||||
+++ linux-libc-headers-2.6.12.0-arm-eabi/include/asm-arm/unistd.h 2006-06-05 17:14:09.000000000 +0300
|
||||
@@ -15,10 +15,12 @@
|
||||
|
||||
#include <linux/linkage.h>
|
||||
|
||||
-#if defined(__thumb__)
|
||||
+#define __NR_OABI_SYSCALL_BASE 0x900000
|
||||
+
|
||||
+#if defined(__thumb__) || defined(__ARM_EABI__)
|
||||
#define __NR_SYSCALL_BASE 0
|
||||
#else
|
||||
-#define __NR_SYSCALL_BASE 0x900000
|
||||
+#define __NR_SYSCALL_BASE __NR_OABI_SYSCALL_BASE
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -365,13 +375,13 @@
|
||||
#define __sys1(x) __sys2(x)
|
||||
|
||||
#ifndef __syscall
|
||||
-#if defined(__thumb__)
|
||||
-#define __syscall(name) \
|
||||
- "push {r7}\n\t" \
|
||||
- "mov r7, #" __sys1(__NR_##name) "\n\t" \
|
||||
- "swi 0\n\t" \
|
||||
- "pop {r7}"
|
||||
+#if defined(__thumb__) || defined(__ARM_EABI__)
|
||||
+#define __SYS_REG(name) register long __sysreg __asm__("r7") = __NR_##name;
|
||||
+#define __SYS_REG_LIST(regs...) "r" (__sysreg) , ##regs
|
||||
+#define __syscall(name) "swi\t0"
|
||||
#else
|
||||
+#define __SYS_REG(name)
|
||||
+#define __SYS_REG_LIST(regs...) regs
|
||||
#define __syscall(name) "swi\t" __sys1(__NR_##name) ""
|
||||
#endif
|
||||
#endif
|
||||
@@ -387,33 +397,34 @@
|
||||
|
||||
#define _syscall0(type,name) \
|
||||
type name(void) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __res_r0 __asm__("r0"); \
|
||||
long __res; \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST() ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
|
||||
#define _syscall1(type,name,type1,arg1) \
|
||||
type name(type1 arg1) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __r0 __asm__("r0") = (long)arg1; \
|
||||
register long __res_r0 __asm__("r0"); \
|
||||
long __res; \
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : "r" (__r0) \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST( "0" (__r0) ) ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
|
||||
#define _syscall2(type,name,type1,arg1,type2,arg2) \
|
||||
type name(type1 arg1,type2 arg2) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __r0 __asm__("r0") = (long)arg1; \
|
||||
register long __r1 __asm__("r1") = (long)arg2; \
|
||||
register long __res_r0 __asm__("r0"); \
|
||||
@@ -421,8 +432,7 @@
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : "r" (__r0),"r" (__r1) \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST( "0" (__r0), "r" (__r1) ) ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -430,6 +440,7 @@
|
||||
|
||||
#define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \
|
||||
type name(type1 arg1,type2 arg2,type3 arg3) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __r0 __asm__("r0") = (long)arg1; \
|
||||
register long __r1 __asm__("r1") = (long)arg2; \
|
||||
register long __r2 __asm__("r2") = (long)arg3; \
|
||||
@@ -438,8 +449,7 @@
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : "r" (__r0),"r" (__r1),"r" (__r2) \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2) ) ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -447,6 +457,7 @@
|
||||
|
||||
#define _syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4)\
|
||||
type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __r0 __asm__("r0") = (long)arg1; \
|
||||
register long __r1 __asm__("r1") = (long)arg2; \
|
||||
register long __r2 __asm__("r2") = (long)arg3; \
|
||||
@@ -456,8 +467,7 @@
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3) \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), "r" (__r3) ) ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
@@ -465,6 +475,7 @@
|
||||
|
||||
#define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \
|
||||
type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __r0 __asm__("r0") = (long)arg1; \
|
||||
register long __r1 __asm__("r1") = (long)arg2; \
|
||||
register long __r2 __asm__("r2") = (long)arg3; \
|
||||
@@ -475,14 +486,15 @@
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3),"r" (__r4) \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \
|
||||
+ "r" (__r3), "r" (__r4) ) ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
|
||||
#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) { \
|
||||
+ __SYS_REG(name) \
|
||||
register long __r0 __asm__("r0") = (long)arg1; \
|
||||
register long __r1 __asm__("r1") = (long)arg2; \
|
||||
register long __r2 __asm__("r2") = (long)arg3; \
|
||||
@@ -494,14 +506,15 @@
|
||||
__asm__ __volatile__ ( \
|
||||
__syscall(name) \
|
||||
: "=r" (__res_r0) \
|
||||
- : "r" (__r0),"r" (__r1),"r" (__r2),"r" (__r3), "r" (__r4),"r" (__r5) \
|
||||
- : "lr"); \
|
||||
+ : __SYS_REG_LIST( "0" (__r0), "r" (__r1), "r" (__r2), \
|
||||
+ "r" (__r3), "r" (__r4), "r" (__r5) ) ); \
|
||||
__res = __res_r0; \
|
||||
__syscall_return(type,__res); \
|
||||
}
|
||||
|
||||
#ifdef __KERNEL_SYSCALLS__
|
||||
|
||||
+#include <linux/compiler.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/syscalls.h>
|
||||
|
@ -1,30 +0,0 @@
|
||||
diff -urN linux-libc-headers-2.6.12.0/include/linux/threads.h linux-libc-headers-2.6.12.0-patched/include/linux/threads.h
|
||||
--- linux-libc-headers-2.6.12.0/include/linux/threads.h 2005-07-05 19:17:23.000000000 -0500
|
||||
+++ linux-libc-headers-2.6.12.0-patched/include/linux/threads.h 2005-08-18 11:39:15.000000000 -0500
|
||||
@@ -24,12 +24,11 @@
|
||||
/*
|
||||
* This controls the default maximum pid allocated to a process
|
||||
*/
|
||||
-#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)
|
||||
+#define PID_MAX_DEFAULT 0x8000
|
||||
|
||||
/*
|
||||
* A maximum of 4 million PIDs should be enough for a while:
|
||||
*/
|
||||
-#define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
|
||||
- (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
|
||||
+#define PID_MAX_LIMIT (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)
|
||||
|
||||
#endif
|
||||
diff -urN linux-libc-headers-2.6.12.0/include/linux/vt_kern.h linux-libc-headers-2.6.12.0-patched/include/linux/vt_kern.h
|
||||
--- linux-libc-headers-2.6.12.0/include/linux/vt_kern.h 2005-07-05 19:17:23.000000000 -0500
|
||||
+++ linux-libc-headers-2.6.12.0-patched/include/linux/vt_kern.h 2005-08-18 11:39:30.000000000 -0500
|
||||
@@ -77,7 +77,7 @@
|
||||
* we can easily avoid touching user space while holding the console spinlock.
|
||||
*/
|
||||
|
||||
-#define CON_BUF_SIZE (CONFIG_BASE_SMALL ? 256 : PAGE_SIZE)
|
||||
+#define CON_BUF_SIZE PAGE_SIZE
|
||||
extern char con_buf[CON_BUF_SIZE];
|
||||
extern struct semaphore con_buf_sem;
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -urpN linux-libc-headers-2.6.12.0/include/linux/i2c-dev.h linux-libc-headers-2.6.12.0-patched/include/linux/i2c-dev.h
|
||||
--- linux-libc-headers-2.6.12.0/include/linux/i2c-dev.h 2005-07-06 02:17:21.000000000 +0200
|
||||
+++ linux-libc-headers-2.6.12.0-patched/include/linux/i2c-dev.h 2006-04-26 13:10:56.000000000 +0200
|
||||
@@ -44,8 +44,6 @@ struct i2c_msg {
|
||||
#define I2C_M_NO_RD_ACK 0x0800
|
||||
short len; /* msg length */
|
||||
char *buf; /* pointer to msg data */
|
||||
- int err;
|
||||
- short done;
|
||||
};
|
||||
|
||||
/* To determine what functionality is present */
|
@ -1,90 +0,0 @@
|
||||
diff -urN linux-libc-headers-2.6.12.0/include/asm-mips/inst.h linux-libc-headers-2.6.12.0-mips-nptl/include/asm-mips/inst.h
|
||||
--- linux-libc-headers-2.6.12.0/include/asm-mips/inst.h 2004-10-31 13:54:20.000000000 -0600
|
||||
+++ linux-libc-headers-2.6.12.0-mips-nptl/include/asm-mips/inst.h 2005-08-10 21:20:57.000000000 -0500
|
||||
@@ -28,7 +28,7 @@
|
||||
sdl_op, sdr_op, swr_op, cache_op,
|
||||
ll_op, lwc1_op, lwc2_op, pref_op,
|
||||
lld_op, ldc1_op, ldc2_op, ld_op,
|
||||
- sc_op, swc1_op, swc2_op, major_3b_op, /* Opcode 0x3b is unused */
|
||||
+ sc_op, swc1_op, swc2_op, rdhwr_op,
|
||||
scd_op, sdc1_op, sdc2_op, sd_op
|
||||
};
|
||||
|
||||
@@ -62,10 +62,10 @@
|
||||
spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
|
||||
tgei_op, tgeiu_op, tlti_op, tltiu_op,
|
||||
teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
|
||||
- bltzal_op, bgezal_op, bltzall_op, bgezall_op
|
||||
- /*
|
||||
- * The others (0x14 - 0x1f) are unused.
|
||||
- */
|
||||
+ bltzal_op, bgezal_op, bltzall_op, bgezall_op,
|
||||
+ rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
|
||||
+ rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
|
||||
+ bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
|
||||
};
|
||||
|
||||
/*
|
||||
diff -urN linux-libc-headers-2.6.12.0/include/asm-mips/unistd.h linux-libc-headers-2.6.12.0-mips-nptl/include/asm-mips/unistd.h
|
||||
--- linux-libc-headers-2.6.12.0/include/asm-mips/unistd.h 2005-07-05 19:17:29.000000000 -0500
|
||||
+++ linux-libc-headers-2.6.12.0-mips-nptl/include/asm-mips/unistd.h 2005-08-10 21:22:27.000000000 -0500
|
||||
@@ -303,16 +303,17 @@
|
||||
#define __NR_add_key (__NR_Linux + 280)
|
||||
#define __NR_request_key (__NR_Linux + 281)
|
||||
#define __NR_keyctl (__NR_Linux + 282)
|
||||
+#define __NR_set_thread_area (__NR_Linux + 283)
|
||||
|
||||
/*
|
||||
* Offset of the last Linux o32 flavoured syscall
|
||||
*/
|
||||
-#define __NR_Linux_syscalls 282
|
||||
+#define __NR_Linux_syscalls 283
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
|
||||
|
||||
#define __NR_O32_Linux 4000
|
||||
-#define __NR_O32_Linux_syscalls 282
|
||||
+#define __NR_O32_Linux_syscalls 283
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI64
|
||||
|
||||
@@ -562,16 +563,17 @@
|
||||
#define __NR_add_key (__NR_Linux + 239)
|
||||
#define __NR_request_key (__NR_Linux + 240)
|
||||
#define __NR_keyctl (__NR_Linux + 241)
|
||||
+#define __NR_set_thread_area (__NR_Linux + 242)
|
||||
|
||||
/*
|
||||
* Offset of the last Linux 64-bit flavoured syscall
|
||||
*/
|
||||
-#define __NR_Linux_syscalls 241
|
||||
+#define __NR_Linux_syscalls 242
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
|
||||
|
||||
#define __NR_64_Linux 5000
|
||||
-#define __NR_64_Linux_syscalls 241
|
||||
+#define __NR_64_Linux_syscalls 242
|
||||
|
||||
#if _MIPS_SIM == _MIPS_SIM_NABI32
|
||||
|
||||
@@ -825,16 +827,17 @@
|
||||
#define __NR_add_key (__NR_Linux + 243)
|
||||
#define __NR_request_key (__NR_Linux + 244)
|
||||
#define __NR_keyctl (__NR_Linux + 245)
|
||||
+#define __NR_set_thread_area (__NR_Linux + 246)
|
||||
|
||||
/*
|
||||
* Offset of the last N32 flavoured syscall
|
||||
*/
|
||||
-#define __NR_Linux_syscalls 245
|
||||
+#define __NR_Linux_syscalls 246
|
||||
|
||||
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
|
||||
|
||||
#define __NR_N32_Linux 6000
|
||||
-#define __NR_N32_Linux_syscalls 245
|
||||
+#define __NR_N32_Linux_syscalls 246
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user