X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Fthread_info.h;h=a61618fb433cbe9b12bfa7d83aec0321997c33a7;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=1a362ca414760123a4439a08d2137560fa0af206;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-arm/thread_info.h b/include/asm-arm/thread_info.h index 1a362ca41..a61618fb4 100644 --- a/include/asm-arm/thread_info.h +++ b/include/asm-arm/thread_info.h @@ -53,6 +53,7 @@ struct thread_info { __u32 cpu_domain; /* cpu domain */ struct cpu_context_save cpu_context; /* cpu context */ __u8 used_cp[16]; /* thread used copro */ + unsigned long tp_value; union fp_state fpstate; union vfp_state vfpstate; struct restart_block restart_block; @@ -76,6 +77,8 @@ struct thread_info { #define init_thread_info (init_thread_union.thread_info) #define init_stack (init_thread_union.stack) +#define THREAD_SIZE 8192 + /* * how to get the thread information struct from C */ @@ -84,11 +87,9 @@ static inline struct thread_info *current_thread_info(void) __attribute_const__; static inline struct thread_info *current_thread_info(void) { register unsigned long sp asm ("sp"); - return (struct thread_info *)(sp & ~0x1fff); + return (struct thread_info *)(sp & ~(THREAD_SIZE - 1)); } -#define THREAD_SIZE (8192) - extern struct thread_info *alloc_thread_info(struct task_struct *task); extern void free_thread_info(struct thread_info *); @@ -128,6 +129,7 @@ extern void iwmmxt_task_release(struct thread_info *); #define TIF_SYSCALL_TRACE 8 #define TIF_POLLING_NRFLAG 16 #define TIF_USING_IWMMXT 17 +#define TIF_MEMDIE 18 #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)