]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/s390/include/asm/thread_info.h
3 * Copyright IBM Corp. 2002, 2006
4 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
7 #ifndef _ASM_THREAD_INFO_H
8 #define _ASM_THREAD_INFO_H
10 #include <linux/const.h>
13 * Size of kernel stack for each process
15 #define THREAD_SIZE_ORDER 2
18 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
19 #define ASYNC_SIZE (PAGE_SIZE << ASYNC_ORDER)
22 #include <asm/lowcore.h>
24 #include <asm/processor.h>
27 * low level task data that entry.S needs immediate access to
28 * - this struct should fit entirely inside of one cache line
29 * - this struct shares the supervisor stack pages
30 * - if the contents of this structure are changed, the assembly constants must also be changed
33 unsigned long flags
; /* low level flags */
37 * macros/functions for gaining access to the thread information structure
39 #define INIT_THREAD_INFO(tsk) \
44 #define init_stack (init_thread_union.stack)
46 void arch_release_task_struct(struct task_struct
*tsk
);
47 int arch_dup_task_struct(struct task_struct
*dst
, struct task_struct
*src
);
52 * thread information flags bit numbers
55 #define TIF_NOTIFY_RESUME 0 /* callback before returning to user */
56 #define TIF_SIGPENDING 1 /* signal pending */
57 #define TIF_NEED_RESCHED 2 /* rescheduling necessary */
58 #define TIF_UPROBE 3 /* breakpointed or single-stepping */
60 #define TIF_31BIT 16 /* 32bit process */
61 #define TIF_MEMDIE 17 /* is terminating due to OOM killer */
62 #define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal() */
63 #define TIF_SINGLE_STEP 19 /* This task is single stepped */
64 #define TIF_BLOCK_STEP 20 /* This task is block stepped */
65 #define TIF_UPROBE_SINGLESTEP 21 /* This task is uprobe single stepped */
68 #define TIF_SYSCALL_TRACE 24 /* syscall trace active */
69 #define TIF_SYSCALL_AUDIT 25 /* syscall auditing active */
70 #define TIF_SECCOMP 26 /* secure computing */
71 #define TIF_SYSCALL_TRACEPOINT 27 /* syscall tracepoint instrumentation */
73 #define _TIF_NOTIFY_RESUME _BITUL(TIF_NOTIFY_RESUME)
74 #define _TIF_SIGPENDING _BITUL(TIF_SIGPENDING)
75 #define _TIF_NEED_RESCHED _BITUL(TIF_NEED_RESCHED)
76 #define _TIF_UPROBE _BITUL(TIF_UPROBE)
78 #define _TIF_31BIT _BITUL(TIF_31BIT)
79 #define _TIF_SINGLE_STEP _BITUL(TIF_SINGLE_STEP)
81 #define _TIF_SYSCALL_TRACE _BITUL(TIF_SYSCALL_TRACE)
82 #define _TIF_SYSCALL_AUDIT _BITUL(TIF_SYSCALL_AUDIT)
83 #define _TIF_SECCOMP _BITUL(TIF_SECCOMP)
84 #define _TIF_SYSCALL_TRACEPOINT _BITUL(TIF_SYSCALL_TRACEPOINT)
86 #endif /* _ASM_THREAD_INFO_H */