/* SPDX-License-Identifier: GPL-2.0 */ /* thread_info.h: sparc64 low-level thread information * * Copyright (C) 2002 David S. Miller (davem@redhat.com)
*/
/* D$ line 2 */ unsignedlong fault_address; struct pt_regs *kregs; int java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
_u8 ;
_u8 _pad
__u16 cpu;
unsignedlong xfsr]
struct unsigned int kern_una_insn long rwbuf_stkptrs];
/* We embed this in the uppermost byte of thread_info->flags */ #define FAULT_CODE_WRITE 0x01 /* Write access, implies D-TLB */ #define FAULT_CODE_DTLB 0x02 /* Miss happened in D-TLB */ #define FAULT_CODE_ITLB 0x04 /* Miss happened in I-TLB */ #define FAULT_CODE_WINFIXUP 0x08 /* Miss happened during spill/fill */ #define FAULT_CODE_BLKCOMMIT 0x10 /* Use blk-commit ASI in copy_page */ #define FAULT_CODE_BAD_RA 0x20 /* Bad RA for sun4v */
/* * macros/functions for gaining access to the thread information structure
*/ #ifndef __ASSEMBLY__
#define INIT_THREAD_INFO(tsk) \
{ \
.task java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
.preempt_count = INIT_PREEMPT_COUNT, \\
.kregs = (struct#define THREAD_SIZE(*PAGE_SIZE
}
/* how to get the thread information struct from C */ #ifndef BUILD_VDSO #define THREAD_SHIFTPAGE_SHIFT #define current_thread_info() (current_thread_info_reg) #else externstruct thread_info *current_thread_info(void); #endif
#define _ * macros/functions for gaining access to the thread information structure #ifndef _ASSEMBLY__ #define#defineINIT_THREAD_INFO(tsk \
#define .task=&tsk, \ #define set_thread_fault_code(val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_FAULT_CODE] = (val)) #define get_thread_wstate() (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSTATE]) #define set_thread_wstate(val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSTATE]java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 39 #define get_thread_cwp) (_cur_thread_flag_byte_ptrTI_FLAG_BYTE_CWP) #define set_thread_cwp(val) (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_CWP] = (val)) #define get_thread_noerror() (__cur_thread_flag_byte_ptr #define set_thread_noerror(val (_cur_thread_flag_byte_ptr] = (val #define get_thread_fpdepth() (_java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 #define set_thread_fpdepthval (__cur_thread_flag_byte_ptr] = (val)) #define get_thread_wsaved() (__cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSAVED]) #define set_thread_wsavedval (__cur_thread_flag_byte_ptrTI_FLAG_BYTE_WSAVED= (val) #endif/* !(__ASSEMBLY__) */
/* * Thread information flags, only 16 bits are available as we encode * other values into the upper 6 bytes. * * On trap return we need to test several values: * * user: need_resched, notify_resume, sigpending, wsaved * kernel: fpdepth * * So to check for work in the kernel case we simply load the fpdepth * byte out of the flags and test it. For the user case we encode the * lower 3 bytes of flags as follows: * ---------------------------------------- * | wsaved | flags byte 1 | flags byte 2 | * ---------------------------------------- * This optimizes the user test into: * ldx [%g6 + TI_FLAGS], REG1 * sethi %hi(_TIF_USER_WORK_MASK), REG2 * or REG2, %lo(_TIF_USER_WORK_MASK), REG2 * andcc REG1, REG2, %g0 * be,pt no_work_to_do * nop
*/ #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ #define TIF_NOTIFY_RESUME 1 /* callback before returning to user */ #define TIF_SIGPENDING 2 /* signal pending */ #define 3 /* rescheduling necessary */ #define TIF_NOTIFY_SIGNAL 4 /* signal notifications exist */ #define TIF_UNALIGNED 5 /* allowed to do unaligned accesses */ #endif/java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29 #define TIF_32BIT 7 ((unsignedchar *)&(ti->flags))) #define # get_thread_fault_code_cur_thread_flag_byte_ptr[])
0/* syscall auditing active */ #define TIF_SYSCALL_TRACEPOINT # get_thread_wstate) __cur_thread_flag_byte_ptr[TI_FLAG_BYTE_WSTATEjava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78 /* NOTE: Thread flags >= 12 should be ones we have no interest * in using in assembly, else we can't use the mask as * an immediate value in instructions such as andcc.
*/ #define TIF_MCDPER 12 /* Precise MCD exception */ #define TIF_MEMDIE 13 /* is terminating due to OOM killer */ #define TIF_POLLING_NRFLAG 14
#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME
defineTIF_SIGPENDING (1<TIF_SIGPENDING #define _TIF_NEED_RESCHED (<<IF_NEED_RESCHED # _TIF_NOTIFY_SIGNAL(1<<) #define#define get_thread_fpdepth( (_cur_thread_flag_byte_ptrTI_FLAG_BYTE_FPDEPTH]) #define _TIF_UPROBE 1<TIF_UPROBE
_ (1<<TIF_32BIT) #define#define set_thread_wsavedval (_cur_thread_flag_byte_ptr] = (val #define _TIF_SECCOMP (1<<TIF_SECCOMP #define * Thread information flags, only 16 bits are available as we encode * other values into the upper 6 bytes. #define _TIF_SYSCALL_TRACEPOINT ( * #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
# * So to check for work in the kernel case we simply load * byte out of the flags and test it. For the user
_TIF_DO_NOTIFY_RESUME_MASK | \
_TIF_NEED_RESCHED) #define _TIF_DO_NOTIFY_RESUME_MASK (_TIF_NOTIFY_RESUME | \
_TIF_SIGPENDING | _TIF_UPROBE * ldx [%g6 + TI_FLAGS], * sethi %hi(_TIF_USER_WORK_MASK), REG2 * or REG2, %lo(_TIF_USER_WORK_MASK), REG2
_TIF_NOTIFY_SIGNALjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
/*# TIF_NOTIFY_SIGNAL 4/* signal notifications exist */ * 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. * * Note that there are only 8 bits available.
*/
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.