LDTs and Linux 2.4.x

Andreas Jaeger aj@suse.de
Mon Aug 13 04:31:00 GMT 2001


As reported on several mailing lists and also in PR libc/2469, the LDT
based thread implementation does not work with some 2.4.x kernel.
This bug is fixed in 2.4.8 and we should therefore adjust the
ASSUME_LDT_WORKS flag.

Ok to commit?

Andreas

2001-08-13  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
	Since Linux 2.4.8 contains an important bugfix for LDTs, we should
	use LDTs only with 2.4.8 or newer.

============================================================
Index: sysdeps/unix/sysv/linux/kernel-features.h
--- sysdeps/unix/sysv/linux/kernel-features.h	2001/07/06 04:56:12	1.29
+++ sysdeps/unix/sysv/linux/kernel-features.h	2001/08/13 11:30:13
@@ -127,8 +127,8 @@
 # define __ASSUME_IPC64			1
 #endif
 
-/* We can use the LDTs for threading with Linux 2.3.99 and newer.  */
-#if __LINUX_KERNEL_VERSION >= 131939
+/* We can use the LDTs for threading with Linux 2.4.8 and newer.  */
+#if __LINUX_KERNEL_VERSION >= 132104
 # define __ASSUME_LDT_WORKS		1
 #endif
 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-hacker mailing list