~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/mips/include/asm/thread_info.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
89
89
 
90
90
#ifdef CONFIG_DEBUG_STACK_USAGE
91
 
#define alloc_thread_info(tsk) kzalloc(THREAD_SIZE, GFP_KERNEL)
 
91
#define alloc_thread_info_node(tsk, node) \
 
92
                kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
92
93
#else
93
 
#define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
 
94
#define alloc_thread_info_node(tsk, node) \
 
95
                kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
94
96
#endif
95
97
 
96
98
#define free_thread_info(info) kfree(info)
122
124
#define TIF_32BIT_ADDR          23      /* 32-bit address space (o32/n32) */
123
125
#define TIF_FPUBOUND            24      /* thread bound to FPU-full CPU set */
124
126
#define TIF_LOAD_WATCH          25      /* If set, load watch registers */
125
 
#define TIF_KERNEL_TRACE        30      /* kernel trace active */
126
127
#define TIF_SYSCALL_TRACE       31      /* syscall trace active */
127
128
 
128
129
#ifdef CONFIG_MIPS32_O32
132
133
#endif /* CONFIG_MIPS32_O32 */
133
134
 
134
135
#define _TIF_SYSCALL_TRACE      (1<<TIF_SYSCALL_TRACE)
135
 
#define _TIF_KERNEL_TRACE       (1<<TIF_KERNEL_TRACE)
136
136
#define _TIF_SIGPENDING         (1<<TIF_SIGPENDING)
137
137
#define _TIF_NEED_RESCHED       (1<<TIF_NEED_RESCHED)
138
138
#define _TIF_SYSCALL_AUDIT      (1<<TIF_SYSCALL_AUDIT)
149
149
#define _TIF_FPUBOUND           (1<<TIF_FPUBOUND)
150
150
#define _TIF_LOAD_WATCH         (1<<TIF_LOAD_WATCH)
151
151
 
 
152
/* work to do in syscall_trace_leave() */
 
153
#define _TIF_WORK_SYSCALL_EXIT  (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
 
154
 
152
155
/* work to do on interrupt/exception return */
153
156
#define _TIF_WORK_MASK          (0x0000ffef &                           \
154
157
                                        ~(_TIF_SECCOMP | _TIF_SYSCALL_AUDIT))
155
158
/* work to do on any return to u-space */
156
 
#define _TIF_ALLWORK_MASK       (0xc000ffff & ~_TIF_SECCOMP)
 
159
#define _TIF_ALLWORK_MASK       (0x8000ffff & ~_TIF_SECCOMP)
157
160
 
158
161
#endif /* __KERNEL__ */
159
162