~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/parisc/include/asm/thread_info.h

Version: ~ [ linux-5.4-rc7 ] ~ [ linux-5.3.11 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.84 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.154 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.201 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.201 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.77 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _ASM_PARISC_THREAD_INFO_H
  2 #define _ASM_PARISC_THREAD_INFO_H
  3 
  4 #ifdef __KERNEL__
  5 
  6 #ifndef __ASSEMBLY__
  7 #include <asm/processor.h>
  8 #include <asm/special_insns.h>
  9 
 10 struct thread_info {
 11         struct task_struct *task;       /* main task structure */
 12         unsigned long flags;            /* thread_info flags (see TIF_*) */
 13         mm_segment_t addr_limit;        /* user-level address space limit */
 14         __u32 cpu;                      /* current CPU */
 15         int preempt_count;              /* 0=premptable, <0=BUG; will also serve as bh-counter */
 16 };
 17 
 18 #define INIT_THREAD_INFO(tsk)                   \
 19 {                                               \
 20         .task           = &tsk,                 \
 21         .flags          = 0,                    \
 22         .cpu            = 0,                    \
 23         .addr_limit     = KERNEL_DS,            \
 24         .preempt_count  = INIT_PREEMPT_COUNT,   \
 25 }
 26 
 27 #define init_thread_info        (init_thread_union.thread_info)
 28 #define init_stack              (init_thread_union.stack)
 29 
 30 /* how to get the thread information struct from C */
 31 #define current_thread_info()   ((struct thread_info *)mfctl(30))
 32 
 33 #endif /* !__ASSEMBLY */
 34 
 35 /* thread information allocation */
 36 
 37 #define THREAD_SIZE_ORDER       3 /* PA-RISC requires at least 32k stack */
 38 /* Be sure to hunt all references to this down when you change the size of
 39  * the kernel stack */
 40 #define THREAD_SIZE             (PAGE_SIZE << THREAD_SIZE_ORDER)
 41 #define THREAD_SHIFT            (PAGE_SHIFT + THREAD_SIZE_ORDER)
 42 
 43 /*
 44  * thread information flags
 45  */
 46 #define TIF_SYSCALL_TRACE       0       /* syscall trace active */
 47 #define TIF_SIGPENDING          1       /* signal pending */
 48 #define TIF_NEED_RESCHED        2       /* rescheduling necessary */
 49 #define TIF_POLLING_NRFLAG      3       /* true if poll_idle() is polling TIF_NEED_RESCHED */
 50 #define TIF_32BIT               4       /* 32 bit binary */
 51 #define TIF_MEMDIE              5       /* is terminating due to OOM killer */
 52 #define TIF_SYSCALL_AUDIT       7       /* syscall auditing active */
 53 #define TIF_NOTIFY_RESUME       8       /* callback before returning to user */
 54 #define TIF_SINGLESTEP          9       /* single stepping? */
 55 #define TIF_BLOCKSTEP           10      /* branch stepping? */
 56 #define TIF_SECCOMP             11      /* secure computing */
 57 #define TIF_SYSCALL_TRACEPOINT  12      /* syscall tracepoint instrumentation */
 58 
 59 #define _TIF_SYSCALL_TRACE      (1 << TIF_SYSCALL_TRACE)
 60 #define _TIF_SIGPENDING         (1 << TIF_SIGPENDING)
 61 #define _TIF_NEED_RESCHED       (1 << TIF_NEED_RESCHED)
 62 #define _TIF_POLLING_NRFLAG     (1 << TIF_POLLING_NRFLAG)
 63 #define _TIF_32BIT              (1 << TIF_32BIT)
 64 #define _TIF_SYSCALL_AUDIT      (1 << TIF_SYSCALL_AUDIT)
 65 #define _TIF_NOTIFY_RESUME      (1 << TIF_NOTIFY_RESUME)
 66 #define _TIF_SINGLESTEP         (1 << TIF_SINGLESTEP)
 67 #define _TIF_BLOCKSTEP          (1 << TIF_BLOCKSTEP)
 68 #define _TIF_SECCOMP            (1 << TIF_SECCOMP)
 69 #define _TIF_SYSCALL_TRACEPOINT (1 << TIF_SYSCALL_TRACEPOINT)
 70 
 71 #define _TIF_USER_WORK_MASK     (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | \
 72                                  _TIF_NEED_RESCHED)
 73 #define _TIF_SYSCALL_TRACE_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \
 74                                  _TIF_BLOCKSTEP | _TIF_SYSCALL_AUDIT | \
 75                                  _TIF_SECCOMP | _TIF_SYSCALL_TRACEPOINT)
 76 
 77 #ifdef CONFIG_64BIT
 78 # ifdef CONFIG_COMPAT
 79 #  define is_32bit_task()       (test_thread_flag(TIF_32BIT))
 80 # else
 81 #  define is_32bit_task()       (0)
 82 # endif
 83 #else
 84 # define is_32bit_task()        (1)
 85 #endif
 86 
 87 #endif /* __KERNEL__ */
 88 
 89 #endif /* _ASM_PARISC_THREAD_INFO_H */
 90 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp