vserver 1.9.5.x5
[linux-2.6.git] / include / asm-m68knommu / thread_info.h
index f45b12a..cedf441 100644 (file)
@@ -45,12 +45,6 @@ struct thread_info {
 #define init_stack             (init_thread_union.stack)
 
 
-/*
- * Size of kernel stack for each process. This must be a power of 2...
- */
-#define THREAD_SIZE            8192    /* 2 pages */
-
-
 /* how to get the thread information struct from C */
 static inline struct thread_info *current_thread_info(void)
 {
@@ -59,7 +53,7 @@ static inline struct thread_info *current_thread_info(void)
                "move.l %%sp, %0 \n\t"
                "and.l  %1, %0"
                : "=&d"(ti)
-               : "d" (~(THREAD_SIZE-1))
+               : "di" (~(THREAD_SIZE-1))
                );
        return ti;
 }
@@ -91,6 +85,7 @@ static inline struct thread_info *current_thread_info(void)
 #define TIF_NEED_RESCHED       3       /* rescheduling necessary */
 #define TIF_POLLING_NRFLAG     4       /* true if poll_idle() is polling
                                           TIF_NEED_RESCHED */
+#define TIF_MEMDIE             5
 
 /* as above, but as bit values */
 #define _TIF_SYSCALL_TRACE     (1<<TIF_SYSCALL_TRACE)