/* we have 8k stack */ #define THREAD_SHIFT 13 #define THREAD_SIZE (1 << THREAD_SHIFT) #define THREAD_SIZE_ORDER 1
#ifndef __ASSEMBLY__ # include <linux/types.h> # include <asm/processor.h>
/* * low level task data that entry.S needs immediate access to * - this struct should fit entirely inside of one cache line * - this struct shares the supervisor stack pages * - if the contents of this structure are changed, the assembly constants * must also be changed
*/
/* thread information allocation */ #endif/* __ASSEMBLY__ */
/* * thread information flags * - these are process state flags that various assembly files may * need to access * - pending work-to-be-done flags are in LSW * - other flags in MSW
*/ #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ #define TIF_NOTIFY_RESUME 1 /* resumption notification requested */ #define TIF_SIGPENDING 2 /* signal pending */ #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ /* restore singlestep on return to user mode */ #define TIF_SINGLESTEP 4 #define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ #define TIF_MEMDIE 6 /* is terminating due to OOM killer */ #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ #define TIF_SECCOMP 10 /* secure computing */
/* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_POLLING_NRFLAG 16
/* work to do in syscall trace */ #define _TIF_WORK_SYSCALL_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \
_TIF_SYSCALL_AUDIT | _TIF_SECCOMP)
/* work to do on interrupt/exception return */ #define _TIF_WORK_MASK 0x0000FFFE
/* work to do on any return to u-space */ #define _TIF_ALLWORK_MASK 0x0000FFFF
/* * Thread-synchronous status. * * This is different from the flags in that nobody else * ever touches our thread-synchronous status, so we don't * have to worry about atomic accesses.
*/ /* FPU was used by this task this quantum (SMP) */ #define TS_USEDFPU 0x0001
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.