This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / include / asm-um / current.h
index 8fd72f6..72a4cbd 100644 (file)
@@ -8,13 +8,18 @@
 
 #ifndef __ASSEMBLY__
 
+struct thread_info;
+
+#include "linux/config.h"
 #include "asm/page.h"
-#include "linux/thread_info.h"
 
-#define current (current_thread_info()->task)
+#define CURRENT_THREAD(dummy) (((unsigned long) &dummy) & \
+                               (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER))
+
+#define current_thread \
+       ({ int dummy; ((struct thread_info *) CURRENT_THREAD(dummy)); })
 
-/*Backward compatibility - it's used inside arch/um.*/
-#define current_thread current_thread_info()
+#define current (current_thread->task)
 
 #endif /* __ASSEMBLY__ */