/* * On machines with 4k pages we default to an 8k thread size, though we * allow a 4k with config option. Any other machine page size then * the thread size must match the page size (which is 8k and larger here).
*/ #if PAGE_SHIFT < 13 #ifdef CONFIG_4KSTACKS #define THREAD_SIZE_ORDER 0 #else #define THREAD_SIZE_ORDER 1 #endif #else #define THREAD_SIZE_ORDER 0 #endif
#ifndef __ASSEMBLER__ /* how to get the thread information struct from C */ staticinlinestruct thread_info *current_thread_info(void)
{ struct thread_info *ti;
__asm__( "move.l %%sp, %0 \n\t" "and.l %1, %0"
: "=&d"(ti)
: "di" (~(THREAD_SIZE-1))
); return ti;
} #endif
/* entry.S relies on these definitions! * bits 0-7 are tested at every exception exit * bits 8-15 are also tested at syscall exit
*/ #define TIF_NOTIFY_SIGNAL 4 #define TIF_NOTIFY_RESUME 5 /* callback before returning to user */ #define TIF_SIGPENDING 6 /* signal pending */ #define TIF_NEED_RESCHED 7 /* rescheduling necessary */ #define TIF_SECCOMP 13 /* seccomp syscall filtering active */ #define TIF_DELAYED_TRACE 14 /* single step a syscall */ #define TIF_SYSCALL_TRACE 15 /* syscall trace active */ #define TIF_MEMDIE 16 /* is terminating due to OOM killer */ #define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal */
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.