X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-um%2Fcurrent.h;h=8fd72f69ce65d263da723de56bec53137e7a7f60;hb=16cf0ec7408f389279d413869e94c1a351392f97;hp=72a4cbd91483ca6c965f2e339410ff43d029ea87;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/include/asm-um/current.h b/include/asm-um/current.h index 72a4cbd91..8fd72f69c 100644 --- a/include/asm-um/current.h +++ b/include/asm-um/current.h @@ -8,18 +8,13 @@ #ifndef __ASSEMBLY__ -struct thread_info; - -#include "linux/config.h" #include "asm/page.h" +#include "linux/thread_info.h" -#define CURRENT_THREAD(dummy) (((unsigned long) &dummy) & \ - (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER)) - -#define current_thread \ - ({ int dummy; ((struct thread_info *) CURRENT_THREAD(dummy)); }) +#define current (current_thread_info()->task) -#define current (current_thread->task) +/*Backward compatibility - it's used inside arch/um.*/ +#define current_thread current_thread_info() #endif /* __ASSEMBLY__ */