fixes: current_text_addr

From: Frank Cornelis (Frank.Cornelis@rug.ac.be)
Date: Sat Oct 27 2001 - 10:26:46 EST


Hi,

Next patch fixes the current_text_addr macro to work also with optimized
code.
There is also a documentation fix included.

Frank.

--- processor.h.orig Fri Oct 26 16:37:51 2001
+++ processor.h Fri Oct 26 16:39:15 2001
@@ -22,7 +22,8 @@
  * Default implementation of macro that returns current
  * instruction pointer ("program counter").
  */
-#define current_text_addr() ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })
+#define current_text_addr() \
+({ void *pc; __asm__ __volatile__("movl $1f,%0\n1:":"=g" (pc)); pc; })

 /*
  * CPU type and hardware bug flags. Kept separately for each CPU.
--- threads.h.orig Fri Oct 26 16:46:52 2001
+++ threads.h Fri Oct 26 16:47:19 2001
@@ -5,7 +5,7 @@

 /*
  * The default limit for the nr of threads is now in
- * /proc/sys/kernel/max-threads.
+ * /proc/sys/kernel/threads-max.
  */

 #ifdef CONFIG_SMP

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 31 2001 - 21:00:33 EST