Home
last modified time | relevance | path

Searched refs:current_thread_info (Results 1 – 25 of 157) sorted by relevance

1234567

/Linux-v4.19/arch/sparc/include/asm/
Dprocessor_64.h111 if (current_thread_info()->utraps) { \
112 if (*(current_thread_info()->utraps) < 2) \
113 kfree(current_thread_info()->utraps); \
115 (*(current_thread_info()->utraps))--; \
116 current_thread_info()->utraps = NULL; \
140 current_thread_info()->xfsr[0] = 0; \
141 current_thread_info()->fpsaved[0] = 0; \
155 if (current_thread_info()->utraps) { \
156 if (*(current_thread_info()->utraps) < 2) \
157 kfree(current_thread_info()->utraps); \
[all …]
Dsfp-machine_64.h77 #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)
Dptrace.h38 ((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)
/Linux-v4.19/arch/sparc/kernel/
Dsigutil_64.c17 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 = &current_thread_info()->reg_window[i]; in save_rwin_state()
65 unsigned long fp = current_thread_info()->rwbuf_stkptrs[i]; in save_rwin_state()
[all …]
Dsys_sparc_64.c556 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
560 if (put_user((utrap_handler_t)(current_thread_info()->utraps[type]), old_p)) in SYSCALL_DEFINE5()
570 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
571 current_thread_info()->utraps = in SYSCALL_DEFINE5()
574 if (!current_thread_info()->utraps) in SYSCALL_DEFINE5()
576 current_thread_info()->utraps[0] = 1; in SYSCALL_DEFINE5()
578 if ((utrap_handler_t)current_thread_info()->utraps[type] != new_p && in SYSCALL_DEFINE5()
579 current_thread_info()->utraps[0] > 1) { in SYSCALL_DEFINE5()
580 unsigned long *p = current_thread_info()->utraps; in SYSCALL_DEFINE5()
582 current_thread_info()->utraps = in SYSCALL_DEFINE5()
[all …]
Dunaligned_64.c261 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 …]
Dsignal_64.c112 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_set_context()
125 err |= __get_user(current_thread_info()->xfsr[0], in sparc64_set_context()
127 err |= __get_user(current_thread_info()->gsr[0], in sparc64_set_context()
159 fenab = (current_thread_info()->fpsaved[0] & FPRS_FEF); in sparc64_get_context()
210 unsigned long *fpregs = current_thread_info()->fpregs; in sparc64_get_context()
213 fprs = current_thread_info()->fpsaved[0]; in sparc64_get_context()
221 err |= __put_user(current_thread_info()->xfsr[0], &(mcp->mc_fpregs.mcfpu_fsr)); in sparc64_get_context()
222 err |= __put_user(current_thread_info()->gsr[0], &(mcp->mc_fpregs.mcfpu_gsr)); in sparc64_get_context()
365 if (current_thread_info()->fpsaved[0] & FPRS_FEF) in setup_rt_frame()
382 if (current_thread_info()->fpsaved[0] & FPRS_FEF) { in setup_rt_frame()
[all …]
Dprocess_64.c253 struct thread_info *tp = current_thread_info(); in arch_trigger_cpumask_backtrace()
424 struct thread_info *t = current_thread_info(); in flush_thread()
493 struct thread_info *t = current_thread_info(); in synchronize_user_stack()
526 struct thread_info *t = current_thread_info(); in fault_in_user_windows()
709 unsigned long *kfpregs = current_thread_info()->fpregs; in dump_fpu()
710 unsigned long fprs = current_thread_info()->fpsaved[0]; in dump_fpu()
726 fpregs32->pr_fsr = (unsigned int) current_thread_info()->xfsr[0]; in dump_fpu()
746 fpregs->pr_fsr = current_thread_info()->xfsr[0]; in dump_fpu()
747 fpregs->pr_gsr = current_thread_info()->gsr[0]; in dump_fpu()
Dsigutil_32.c91 rp = &current_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()
Dwindows.c63 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()
Dstacktrace.c22 if (tp == current_thread_info()) { in __save_stack_trace()
76 __save_stack_trace(current_thread_info(), trace, false); in save_stack_trace()
/Linux-v4.19/arch/sparc/math-emu/
Dmath_64.c103 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-v4.19/include/linux/
Dthread_info.h22 #define current_thread_info() ((struct thread_info *)current) macro
88 set_ti_thread_flag(current_thread_info(), flag)
90 clear_ti_thread_flag(current_thread_info(), flag)
92 update_ti_thread_flag(current_thread_info(), flag, value)
94 test_and_set_ti_thread_flag(current_thread_info(), flag)
96 test_and_clear_ti_thread_flag(current_thread_info(), flag)
98 test_ti_thread_flag(current_thread_info(), flag)
/Linux-v4.19/arch/x86/entry/
Dcommon.c71 struct thread_info *ti = current_thread_info(); in syscall_trace_enter()
176 cached_flags = READ_ONCE(current_thread_info()->flags); in exit_to_usermode_loop()
186 struct thread_info *ti = current_thread_info(); in prepare_exit_to_usermode()
249 struct thread_info *ti = current_thread_info(); in syscall_return_slowpath()
278 ti = current_thread_info(); in do_syscall_64()
306 struct thread_info *ti = current_thread_info(); in do_syscall_32_irqs_on()
/Linux-v4.19/arch/um/kernel/
Dprocess.c134 userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler()
153 userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs); in fork_handler()
208 cpu_tasks[current_thread_info()->cpu].pid = os_getpid(); in arch_cpu_idle()
223 return stack != (unsigned long) current_thread_info(); in user_context()
260 return current_thread_info()->cpu; in cpu()
397 int cpu = current_thread_info()->cpu; in elf_core_copy_fpregs()
/Linux-v4.19/arch/mips/include/asm/
Dirq_regs.h18 return current_thread_info()->regs; in get_irq_regs()
26 current_thread_info()->regs = new_regs; in set_irq_regs()
/Linux-v4.19/arch/sh/include/asm/
Dthread_info.h70 static inline struct thread_info *current_thread_info(void) in current_thread_info() function
163 struct thread_info *ti = current_thread_info(); in set_thread_fault_code()
170 struct thread_info *ti = current_thread_info(); in get_thread_fault_code()
Dsegment.h31 #define get_fs() (current_thread_info()->addr_limit)
32 #define set_fs(x) (current_thread_info()->addr_limit = (x))
Dkprobes.h19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
/Linux-v4.19/arch/arm64/include/asm/
Duaccess.h39 #define get_fs() (current_thread_info()->addr_limit)
43 current_thread_info()->addr_limit = fs; in set_fs()
77 unsigned long ret, limit = current_thread_info()->addr_limit; in __range_ok()
146 ttbr0 = READ_ONCE(current_thread_info()->ttbr0); in __uaccess_ttbr0_enable()
250 : "r" (ptr), "r" (current_thread_info()->addr_limit) in __uaccess_mask_ptr()
/Linux-v4.19/arch/m68k/include/asm/
Dsegment.h58 #define get_fs() (current_thread_info()->addr_limit)
59 #define set_fs(x) (current_thread_info()->addr_limit = (x))
/Linux-v4.19/include/asm-generic/
Dpreempt.h11 return READ_ONCE(current_thread_info()->preempt_count); in preempt_count()
16 return &current_thread_info()->preempt_count; in preempt_count_ptr()
/Linux-v4.19/arch/x86/include/asm/
Dmwait.h105 clflush((void *)&current_thread_info()->flags); in mwait_idle_with_hints()
109 __monitor((void *)&current_thread_info()->flags, 0, 0); in mwait_idle_with_hints()
/Linux-v4.19/arch/arm/nwfpe/
Dfpa11.h25 #define GET_FPA11() ((FPA11 *)(&current_thread_info()->fpstate))
32 #define GET_USERREG() ((struct pt_regs *)(THREAD_START_SP + (unsigned long)current_thread_info()) -…
/Linux-v4.19/arch/unicore32/include/asm/
Dthread_info.h93 static inline struct thread_info *current_thread_info(void) __attribute_const__;
95 static inline struct thread_info *current_thread_info(void) in current_thread_info() function

1234567