2001-10-27 15:26:27

by Frank Cornelis

[permalink] [raw]
Subject: fixes: current_text_addr

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