source: patches/linux-libc-headers-2.6.12.0-mips_tls-1.patch@ ed3a13d4

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ed3a13d4 was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 3.2 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-09-12
3Initial Package Version: 2.6.12.0
4Origin: http://www.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/toolchain/kernel-headers/linux-libc-headers-2.6.12.0-mips-nptl.patch?rev=11104&view=auto
5Upstream Status: Unknown
6Description: Adds TLS Support to Kernel Headers for MIPS
7
8diff -Naur linux-libc-headers-2.6.12.0.orig/include/asm-mips/inst.h linux-libc-headers-2.6.12.0/include/asm-mips/inst.h
9--- linux-libc-headers-2.6.12.0.orig/include/asm-mips/inst.h 2004-10-31 19:54:20.000000000 +0000
10+++ linux-libc-headers-2.6.12.0/include/asm-mips/inst.h 2005-09-12 23:57:11.000000000 +0000
11@@ -28,7 +28,7 @@
12 sdl_op, sdr_op, swr_op, cache_op,
13 ll_op, lwc1_op, lwc2_op, pref_op,
14 lld_op, ldc1_op, ldc2_op, ld_op,
15- sc_op, swc1_op, swc2_op, major_3b_op, /* Opcode 0x3b is unused */
16+ sc_op, swc1_op, swc2_op, rdhwr_op,
17 scd_op, sdc1_op, sdc2_op, sd_op
18 };
19
20@@ -62,10 +62,10 @@
21 spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
22 tgei_op, tgeiu_op, tlti_op, tltiu_op,
23 teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
24- bltzal_op, bgezal_op, bltzall_op, bgezall_op
25- /*
26- * The others (0x14 - 0x1f) are unused.
27- */
28+ bltzal_op, bgezal_op, bltzall_op, bgezall_op,
29+ rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
30+ rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
31+ bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
32 };
33
34 /*
35diff -Naur linux-libc-headers-2.6.12.0.orig/include/asm-mips/unistd.h linux-libc-headers-2.6.12.0/include/asm-mips/unistd.h
36--- linux-libc-headers-2.6.12.0.orig/include/asm-mips/unistd.h 2005-07-06 00:17:29.000000000 +0000
37+++ linux-libc-headers-2.6.12.0/include/asm-mips/unistd.h 2005-09-12 23:57:11.000000000 +0000
38@@ -303,16 +303,17 @@
39 #define __NR_add_key (__NR_Linux + 280)
40 #define __NR_request_key (__NR_Linux + 281)
41 #define __NR_keyctl (__NR_Linux + 282)
42+#define __NR_set_thread_area (__NR_Linux + 283)
43
44 /*
45 * Offset of the last Linux o32 flavoured syscall
46 */
47-#define __NR_Linux_syscalls 282
48+#define __NR_Linux_syscalls 283
49
50 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
51
52 #define __NR_O32_Linux 4000
53-#define __NR_O32_Linux_syscalls 282
54+#define __NR_O32_Linux_syscalls 283
55
56 #if _MIPS_SIM == _MIPS_SIM_ABI64
57
58@@ -562,16 +563,17 @@
59 #define __NR_add_key (__NR_Linux + 239)
60 #define __NR_request_key (__NR_Linux + 240)
61 #define __NR_keyctl (__NR_Linux + 241)
62+#define __NR_set_thread_area (__NR_Linux + 242)
63
64 /*
65 * Offset of the last Linux 64-bit flavoured syscall
66 */
67-#define __NR_Linux_syscalls 241
68+#define __NR_Linux_syscalls 242
69
70 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
71
72 #define __NR_64_Linux 5000
73-#define __NR_64_Linux_syscalls 241
74+#define __NR_64_Linux_syscalls 242
75
76 #if _MIPS_SIM == _MIPS_SIM_NABI32
77
78@@ -825,16 +827,17 @@
79 #define __NR_add_key (__NR_Linux + 243)
80 #define __NR_request_key (__NR_Linux + 244)
81 #define __NR_keyctl (__NR_Linux + 245)
82+#define __NR_set_thread_area (__NR_Linux + 246)
83
84 /*
85 * Offset of the last N32 flavoured syscall
86 */
87-#define __NR_Linux_syscalls 245
88+#define __NR_Linux_syscalls 246
89
90 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
91
92 #define __NR_N32_Linux 6000
93-#define __NR_N32_Linux_syscalls 245
94+#define __NR_N32_Linux_syscalls 246
95
96 #ifndef __ASSEMBLY__
97
Note: See TracBrowser for help on using the repository browser.