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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php