/linux/arch/sparc/include/asm/ |
H A D | processor_64.h | 101 if (current_thread_info()->utraps) { \ 102 if (*(current_thread_info()->utraps) < 2) \ 103 kfree(current_thread_info()->utraps); \ 105 (*(current_thread_info()->utraps))--; \ 106 current_thread_info()->utraps = NULL; \ 130 current_thread_info()->xfsr[0] = 0; \ 131 current_thread_info()->fpsaved[0] = 0; \ 145 if (current_thread_info()->utraps) { \ 146 if (*(current_thread_info()->utraps) < 2) \ 147 kfree(current_thread_info()->utraps); \ [all …]
|
H A D | sfp-machine_64.h | 77 #define FP_ROUNDMODE ((current_thread_info()->xfsr[0] >> 30) & 0x3) 89 #define FP_INHIBIT_RESULTS ((current_thread_info()->xfsr[0] >> 23) & _fex) 91 #define FP_TRAPPING_EXCEPTIONS ((current_thread_info()->xfsr[0] >> 23) & 0x1f)
|
H A D | ptrace.h | 38 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1) 134 current_thread_info()->w_saved != 0; \ 141 ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
|
H A D | thread_info_64.h | 125 #define current_thread_info() (current_thread_info_reg) macro 127 extern struct thread_info *current_thread_info(void); 139 #define __cur_thread_flag_byte_ptr __thread_flag_byte_ptr(current_thread_info())
|
/linux/arch/arm64/include/asm/ |
H A D | preempt.h | 13 return READ_ONCE(current_thread_info()->preempt.count); in preempt_count() 19 WRITE_ONCE(current_thread_info()->preempt.count, pc); in preempt_count_set() 32 current_thread_info()->preempt.need_resched = 0; in set_preempt_need_resched() 37 current_thread_info()->preempt.need_resched = 1; in clear_preempt_need_resched() 42 return !current_thread_info()->preempt.need_resched; in test_preempt_need_resched() 47 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_add() 49 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_add() 54 u32 pc = READ_ONCE(current_thread_info()->preempt.count); in __preempt_count_sub() 56 WRITE_ONCE(current_thread_info()->preempt.count, pc); in __preempt_count_sub() 61 struct thread_info *ti = current_thread_info(); in __preempt_count_dec_and_test() [all …]
|
/linux/arch/sparc/kernel/ |
H A D | sigutil_64.c | 17 unsigned long *fpregs = current_thread_info()->fpregs; in save_fpu_state() 21 fprs = current_thread_info()->fpsaved[0]; in save_fpu_state() 28 err |= __put_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in save_fpu_state() 29 err |= __put_user(current_thread_info()->gsr[0], &fpu->si_gsr); in save_fpu_state() 37 unsigned long *fpregs = current_thread_info()->fpregs; in restore_fpu_state() 53 err |= __get_user(current_thread_info()->xfsr[0], &fpu->si_fsr); in restore_fpu_state() 54 err |= __get_user(current_thread_info()->gsr[0], &fpu->si_gsr); in restore_fpu_state() 55 current_thread_info()->fpsaved[0] |= fprs; in restore_fpu_state() 64 struct reg_window *rp = ¤t_thread_info()->reg_window[i]; in save_rwin_state() 65 unsigned long fp = current_thread_info()->rwbuf_stkptrs[i]; in save_rwin_state() [all …]
|
H A D | unaligned_64.c | 261 struct pt_regs *regs = current_thread_info()->kern_una_regs; in kernel_mna_trap_fault() 262 unsigned int insn = current_thread_info()->kern_una_insn; in kernel_mna_trap_fault() 312 current_thread_info()->kern_una_regs = regs; in kernel_unaligned_trap() 313 current_thread_info()->kern_una_insn = insn; in kernel_unaligned_trap() 448 current_thread_info()->xfsr[0] &= ~0x1c000; in handle_ldf_stq() 456 current_thread_info()->xfsr[0] |= (6 << 14) /* invalid_fp_register */; in handle_ldf_stq() 460 if (current_thread_info()->fpsaved[0] & flag) { in handle_ldf_stq() 553 if (!(current_thread_info()->fpsaved[0] & FPRS_FEF)) { in handle_ldf_stq() 554 current_thread_info()->fpsaved[0] = FPRS_FEF; in handle_ldf_stq() 555 current_thread_info()->gsr[0] = 0; in handle_ldf_stq() [all …]
|
H A D | signal_64.c | 111 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context() 124 err |= __get_user(current_thread_info()->xfsr[0], in sparc64_set_context() 126 err |= __get_user(current_thread_info()->gsr[0], in sparc64_set_context() 158 fenab = (current_thread_info()->fpsaved[0] & FPRS_FEF); in sparc64_get_context() 209 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context() 212 fprs = current_thread_info()->fpsaved[0]; in sparc64_get_context() 220 err |= __put_user(current_thread_info()->xfsr[0], &(mcp->mc_fpregs.mcfpu_fsr)); in sparc64_get_context() 221 err |= __put_user(current_thread_info()->gsr[0], &(mcp->mc_fpregs.mcfpu_gsr)); in sparc64_get_context() 364 if (current_thread_info()->fpsaved[0] & FPRS_FEF) in setup_rt_frame() 385 if (current_thread_info()->fpsaved[0] & FPRS_FEF) { in setup_rt_frame() [all …]
|
H A D | sigutil_32.c | 91 rp = ¤t_thread_info()->reg_window[i]; in save_rwin_state() 92 fp = current_thread_info()->rwbuf_stkptrs[i]; in save_rwin_state() 102 struct thread_info *t = current_thread_info(); in restore_rwin_state()
|
H A D | windows.c | 63 struct thread_info *tp = current_thread_info(); in synchronize_user_stack() 115 struct thread_info *tp = current_thread_info(); in try_to_clear_window_buffer()
|
H A D | stacktrace.c | 23 if (tp == current_thread_info()) { in __save_stack_trace() 79 __save_stack_trace(current_thread_info(), trace, false); in save_stack_trace()
|
/linux/arch/sparc/math-emu/ |
H A D | math_64.c | 103 u64 fsr = current_thread_info()->xfsr[0]; in record_exception() 148 current_thread_info()->xfsr[0] = fsr; in record_exception() 220 unsigned long x = current_thread_info()->xfsr[0]; in do_mathemu() 228 unsigned long x = current_thread_info()->xfsr[0]; in do_mathemu() 273 XR = current_thread_info()->xfsr[0] >> 10; in do_mathemu() 275 XR = current_thread_info()->xfsr[0] >> (30 + ((insn >> 10) & 0x6)); in do_mathemu() 347 current_thread_info()->xfsr[0] &= ~(FSR_CEXC_MASK); in do_mathemu() 368 int ftt = (current_thread_info()->xfsr[0] >> 14) & 0x7; in do_mathemu() 372 current_thread_info()->xfsr[0] &= ~0x1c000; in do_mathemu() 376 current_thread_info()->xfsr[0] |= (6 << 14) /* invalid_fp_register */; in do_mathemu() [all …]
|
/linux/arch/alpha/include/asm/ |
H A D | fpu.h | 19 if (current_thread_info()->status & TS_SAVED_FP) { in rdfpcr() 20 ret = current_thread_info()->fp[31]; in rdfpcr() 49 if (current_thread_info()->status & TS_SAVED_FP) { in wrfpcr() 50 current_thread_info()->status |= TS_RESTORE_FP; in wrfpcr() 51 current_thread_info()->fp[31] = val; in wrfpcr()
|
H A D | thread_info.h | 43 #define current_thread_info() __current_thread_info macro 118 if (!(current_thread_info()->status & TS_SAVED_FP)) { in save_fpu() 119 current_thread_info()->status |= TS_SAVED_FP; in save_fpu()
|
/linux/include/linux/sched/ |
H A D | idle.h | 31 (unsigned long *)(¤t_thread_info()->flags)); in __current_set_polling() 37 (unsigned long *)(¤t_thread_info()->flags)); in __current_clr_polling() 45 (unsigned long *)(¤t_thread_info()->flags)); in __current_set_polling() 51 (unsigned long *)(¤t_thread_info()->flags)); in __current_clr_polling()
|
/linux/arch/um/kernel/ |
H A D | signal.c | 23 if (current_thread_info()) in block_signals_trace() 29 if (current_thread_info()) in unblock_signals_trace() 36 if (current_thread_info()) in um_trace_signals_on() 42 if (current_thread_info()) in um_trace_signals_off()
|
/linux/arch/sh/include/asm/ |
H A D | thread_info.h | 66 static inline struct thread_info *current_thread_info(void) in current_thread_info() function 156 struct thread_info *ti = current_thread_info(); in set_thread_fault_code() 163 struct thread_info *ti = current_thread_info(); in get_thread_fault_code()
|
H A D | kprobes.h | 19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \ 21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
|
/linux/arch/mips/include/asm/ |
H A D | irq_regs.h | 15 return current_thread_info()->regs; in get_irq_regs() 23 current_thread_info()->regs = new_regs; in set_irq_regs()
|
/linux/arch/loongarch/include/asm/ |
H A D | irq_regs.h | 14 return current_thread_info()->regs; in get_irq_regs() 22 current_thread_info()->regs = new_regs; in set_irq_regs()
|
/linux/include/asm-generic/ |
H A D | preempt.h | 11 return READ_ONCE(current_thread_info()->preempt_count); in preempt_count() 16 return ¤t_thread_info()->preempt_count; in preempt_count_ptr()
|
/linux/arch/arm/nwfpe/ |
H A D | fpa11.h | 13 #define GET_FPA11() ((FPA11 *)(¤t_thread_info()->fpstate)) 20 #define GET_USERREG() ((struct pt_regs *)(THREAD_START_SP + (unsigned long)current_thread_info()) -…
|
/linux/arch/x86/include/asm/ |
H A D | mwait.h | 122 clflush((void *)¤t_thread_info()->flags); in mwait_idle_with_hints() 126 __monitor((void *)¤t_thread_info()->flags, 0, 0); in mwait_idle_with_hints()
|
/linux/arch/alpha/kernel/ |
H A D | process.c | 222 current_thread_info()->ieee_state = 0; in flush_thread() 226 current_thread_info()->pcb.unique = 0; in flush_thread() 321 dest[30] = ti == current_thread_info() ? rdusp() : ti->pcb.usp; in dump_elf_thread()
|
/linux/arch/powerpc/include/asm/ |
H A D | thread_info.h | 166 struct thread_info *ti = current_thread_info(); in clear_thread_local_flags() 172 struct thread_info *ti = current_thread_info(); in test_thread_local_flags()
|