vserver 1.9.5.x5
[linux-2.6.git] / include / asm-arm / thread_info.h
index 1a362ca..a61618f 100644 (file)
@@ -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)