Home
last modified time | relevance | path

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

123456

/linux-6.3-rc2/arch/sparc/include/asm/
A Dprocessor_64.h101 if (current_thread_info()->utraps) { \
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) { \
147 kfree(current_thread_info()->utraps); \
150 current_thread_info()->utraps = NULL; \
174 current_thread_info()->xfsr[0] = 0; \
[all …]
A 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)
A 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)
A Dthread_info_64.h125 #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-6.3-rc2/arch/arm64/include/asm/
A Dpreempt.h13 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-6.3-rc2/include/linux/
A Dthread_info.h24 #define current_thread_info() ((struct thread_info *)current) macro
131 set_ti_thread_flag(current_thread_info(), flag)
133 clear_ti_thread_flag(current_thread_info(), flag)
135 update_ti_thread_flag(current_thread_info(), flag, value)
137 test_and_set_ti_thread_flag(current_thread_info(), flag)
141 test_ti_thread_flag(current_thread_info(), flag)
143 read_ti_thread_flags(current_thread_info())
166 set_ti_thread_flag(current_thread_info(), TIF_##fl)
168 test_ti_thread_flag(current_thread_info(), TIF_##fl)
170 clear_ti_thread_flag(current_thread_info(), TIF_##fl)
[all …]
/linux-6.3-rc2/arch/sparc/kernel/
A 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 …]
A Dunaligned_64.c312 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()
460 if (current_thread_info()->fpsaved[0] & flag) { 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()
564 current_thread_info()->fpsaved[0] |= flag; in handle_ldf_stq()
636 current_thread_info()->fpsaved[0] = FPRS_FEF; in handle_lddfmna()
637 current_thread_info()->gsr[0] = 0; in handle_lddfmna()
646 current_thread_info()->fpsaved[0] |= flag; in handle_lddfmna()
[all …]
A Dsys_sparc_64.c617 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
631 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
632 current_thread_info()->utraps = in SYSCALL_DEFINE5()
635 if (!current_thread_info()->utraps) in SYSCALL_DEFINE5()
637 current_thread_info()->utraps[0] = 1; in SYSCALL_DEFINE5()
640 current_thread_info()->utraps[0] > 1) { in SYSCALL_DEFINE5()
643 current_thread_info()->utraps = in SYSCALL_DEFINE5()
647 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
648 current_thread_info()->utraps = p; in SYSCALL_DEFINE5()
652 current_thread_info()->utraps[0] = 1; in SYSCALL_DEFINE5()
[all …]
A Dsignal_64.c111 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 …]
A 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()
/linux-6.3-rc2/arch/sparc/math-emu/
A 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()
372 current_thread_info()->xfsr[0] &= ~0x1c000; in do_mathemu()
419 current_thread_info()->fpsaved[0] = FPRS_FEF; in do_mathemu()
420 current_thread_info()->gsr[0] = 0; in do_mathemu()
428 current_thread_info()->fpsaved[0] |= flags; in do_mathemu()
496 case 0: xfsr = current_thread_info()->xfsr[0]; in do_mathemu()
[all …]
/linux-6.3-rc2/arch/alpha/include/asm/
A Dfpu.h19 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()
A Dthread_info.h43 #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-6.3-rc2/arch/alpha/lib/
A Dfpreg.c27 if (current_thread_info()->status & TS_SAVED_FP) in alpha_read_fp_reg()
28 val = current_thread_info()->fp[reg]; in alpha_read_fp_reg()
81 if (current_thread_info()->status & TS_SAVED_FP) { in alpha_write_fp_reg()
82 current_thread_info()->status |= TS_RESTORE_FP; in alpha_write_fp_reg()
83 current_thread_info()->fp[reg] = val; in alpha_write_fp_reg()
137 if (current_thread_info()->status & TS_SAVED_FP) { in alpha_read_fp_reg_s()
138 LDT(0, current_thread_info()->fp[reg]); in alpha_read_fp_reg_s()
192 if (current_thread_info()->status & TS_SAVED_FP) { in alpha_write_fp_reg_s()
193 current_thread_info()->status |= TS_RESTORE_FP; in alpha_write_fp_reg_s()
195 STT(0, current_thread_info()->fp[reg]); in alpha_write_fp_reg_s()
/linux-6.3-rc2/include/linux/sched/
A Didle.h31 (unsigned long *)(&current_thread_info()->flags)); in __current_set_polling()
37 (unsigned long *)(&current_thread_info()->flags)); in __current_clr_polling()
45 (unsigned long *)(&current_thread_info()->flags)); in __current_set_polling()
51 (unsigned long *)(&current_thread_info()->flags)); in __current_clr_polling()
/linux-6.3-rc2/arch/um/kernel/
A Dsignal.c23 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()
A Dprocess.c136 userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler()
155 userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs); in fork_handler()
219 cpu_tasks[current_thread_info()->cpu].pid = os_getpid(); in arch_cpu_idle()
233 return stack != (unsigned long) current_thread_info(); in user_context()
398 int cpu = current_thread_info()->cpu; in elf_core_copy_task_fpregs()
/linux-6.3-rc2/arch/sh/include/asm/
A Dthread_info.h66 static inline struct thread_info *current_thread_info(void) in current_thread_info() function
159 struct thread_info *ti = current_thread_info(); in set_thread_fault_code()
166 struct thread_info *ti = current_thread_info(); in get_thread_fault_code()
A Dkprobes.h19 (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
21 : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
/linux-6.3-rc2/arch/mips/include/asm/
A Dirq_regs.h15 return current_thread_info()->regs; in get_irq_regs()
23 current_thread_info()->regs = new_regs; in set_irq_regs()
/linux-6.3-rc2/arch/loongarch/include/asm/
A Dirq_regs.h14 return current_thread_info()->regs; in get_irq_regs()
22 current_thread_info()->regs = new_regs; in set_irq_regs()
/linux-6.3-rc2/include/asm-generic/
A 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-6.3-rc2/arch/arm/nwfpe/
A Dfpa11.h13 #define GET_FPA11() ((FPA11 *)(&current_thread_info()->fpstate))
20 #define GET_USERREG() ((struct pt_regs *)(THREAD_START_SP + (unsigned long)current_thread_info()) -…
/linux-6.3-rc2/arch/x86/include/asm/
A Dmwait.h113 clflush((void *)&current_thread_info()->flags); in mwait_idle_with_hints()
117 __monitor((void *)&current_thread_info()->flags, 0, 0); in mwait_idle_with_hints()

Completed in 32 milliseconds

123456