Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/arch/mips/include/asm/
A Dasmmacro-32.h20 s.d $f0, THREAD_FPR0(\thread)
21 s.d $f2, THREAD_FPR2(\thread)
22 s.d $f4, THREAD_FPR4(\thread)
23 s.d $f6, THREAD_FPR6(\thread)
24 s.d $f8, THREAD_FPR8(\thread)
25 s.d $f10, THREAD_FPR10(\thread)
26 s.d $f12, THREAD_FPR12(\thread)
27 s.d $f14, THREAD_FPR14(\thread)
28 s.d $f16, THREAD_FPR16(\thread)
29 s.d $f18, THREAD_FPR18(\thread)
[all …]
A Dasmmacro-64.h17 .macro cpu_save_nonscratch thread
18 LONG_S s0, THREAD_REG16(\thread)
19 LONG_S s1, THREAD_REG17(\thread)
20 LONG_S s2, THREAD_REG18(\thread)
21 LONG_S s3, THREAD_REG19(\thread)
22 LONG_S s4, THREAD_REG20(\thread)
23 LONG_S s5, THREAD_REG21(\thread)
24 LONG_S s6, THREAD_REG22(\thread)
25 LONG_S s7, THREAD_REG23(\thread)
26 LONG_S sp, THREAD_REG29(\thread)
[all …]
A Ddsp.h41 tsk->thread.dsp.dspr[0] = mfhi1(); \
42 tsk->thread.dsp.dspr[1] = mflo1(); \
43 tsk->thread.dsp.dspr[2] = mfhi2(); \
44 tsk->thread.dsp.dspr[3] = mflo2(); \
58 mthi1(tsk->thread.dsp.dspr[0]); \
59 mtlo1(tsk->thread.dsp.dspr[1]); \
60 mthi2(tsk->thread.dsp.dspr[2]); \
61 mtlo2(tsk->thread.dsp.dspr[3]); \
62 mthi3(tsk->thread.dsp.dspr[4]); \
63 mtlo3(tsk->thread.dsp.dspr[5]); \
[all …]
A Dasmmacro.h88 sdc1 $f0, THREAD_FPR0(\thread)
89 sdc1 $f2, THREAD_FPR2(\thread)
90 sdc1 $f4, THREAD_FPR4(\thread)
91 sdc1 $f6, THREAD_FPR6(\thread)
104 sw \tmp, THREAD_FCR31(\thread)
108 .macro fpu_save_16odd thread
137 fpu_save_16odd \thread
140 fpu_save_16even \thread \tmp
197 fpu_restore_16odd \thread
521 #define FPR_BASE \thread
[all …]
/arch/powerpc/kernel/ptrace/
A Dptrace-adv.c48 task->thread.debug.dbcr1)) { in user_disable_single_step()
88 struct thread_struct *thread = &task->thread; in ptrace_set_debugreg() local
224 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_instruction_bp()
241 child->thread.debug.iac1 = 0; in del_instruction_bp()
251 child->thread.debug.iac2 = 0; in del_instruction_bp()
264 child->thread.debug.iac3 = 0; in del_instruction_bp()
274 child->thread.debug.iac4 = 0; in del_instruction_bp()
308 child->thread.debug.dvc1 = in set_dac()
329 child->thread.debug.dvc2 = in set_dac()
340 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_dac()
[all …]
A Dptrace-noadv.c82 struct thread_struct *thread = &task->thread; in ptrace_set_debugreg() local
121 bp = thread->ptrace_bps[0]; in ptrace_set_debugreg()
125 thread->ptrace_bps[0] = NULL; in ptrace_set_debugreg()
142 thread->ptrace_bps[0] = bp; in ptrace_set_debugreg()
143 thread->hw_brk[0] = hw_brk; in ptrace_set_debugreg()
157 thread->ptrace_bps[0] = NULL; in ptrace_set_debugreg()
175 if (!thread->ptrace_bps[i]) in find_empty_ptrace_bp()
198 struct thread_struct *thread = &child->thread; in ppc_set_hwdebug() local
244 thread->ptrace_bps[i] = bp; in ppc_set_hwdebug()
246 thread->ptrace_bps[i] = NULL; in ppc_set_hwdebug()
[all …]
A Dptrace-tm.c28 tm_save_sprs(&tsk->thread); in flush_tmregs_to_thread()
34 return task->thread.ckpt_regs.msr | task->thread.fpexc_mode; in get_user_ckpt_msr()
46 set_trap(&task->thread.ckpt_regs, trap); in set_user_ckpt_trap()
152 &target->thread.ckpt_regs, in tm_cgpr_set()
247 buf[i] = target->thread.TS_CKFPR(i); in tm_cfpr_get()
291 buf[i] = target->thread.TS_CKFPR(i); in tm_cfpr_set()
299 target->thread.TS_CKFPR(i) = buf[i]; in tm_cfpr_set()
367 vrsave.word = target->thread.ckvrsave; in tm_cvmx_get()
648 &target->thread.tm_tfiar, in tm_spr_set()
778 &target->thread.ckpt_regs.gpr[0]); in tm_cgpr32_get()
[all …]
/arch/riscv/kernel/
A Dasm-offsets.c23 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
24 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
25 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
26 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
27 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
295 offsetof(struct task_struct, thread.ra) in asm_offsets()
296 - offsetof(struct task_struct, thread.ra) in asm_offsets()
299 offsetof(struct task_struct, thread.sp) in asm_offsets()
300 - offsetof(struct task_struct, thread.ra) in asm_offsets()
304 - offsetof(struct task_struct, thread.ra) in asm_offsets()
[all …]
/arch/s390/kernel/
A Dprocess.c91 dst->thread.kfpu_flags = 0; in arch_dup_task_struct()
100 dst->thread.ri_cb = NULL; in arch_dup_task_struct()
101 dst->thread.gs_cb = NULL; in arch_dup_task_struct()
124 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user)); in copy_thread()
125 memset(&p->thread.per_event, 0, sizeof(p->thread.per_event)); in copy_thread()
127 p->thread.per_flags = 0; in copy_thread()
129 p->thread.user_timer = 0; in copy_thread()
130 p->thread.guest_timer = 0; in copy_thread()
131 p->thread.system_timer = 0; in copy_thread()
134 p->thread.last_break = 1; in copy_thread()
[all …]
A Dguarded_storage.c18 kfree(tsk->thread.gs_cb); in guarded_storage_release()
19 kfree(tsk->thread.gs_bc_cb); in guarded_storage_release()
26 if (!current->thread.gs_cb) { in gs_enable()
34 current->thread.gs_cb = gs_cb; in gs_enable()
42 if (current->thread.gs_cb) { in gs_disable()
44 kfree(current->thread.gs_cb); in gs_disable()
45 current->thread.gs_cb = NULL; in gs_disable()
73 current->thread.gs_bc_cb = NULL; in gs_clear_bc_cb()
86 kfree(current->thread.gs_cb); in gs_load_bc_cb()
90 current->thread.gs_cb = gs_cb; in gs_load_bc_cb()
[all …]
A Dptrace.c48 struct thread_struct *thread = &task->thread; in update_cr_regs() local
83 if (task->thread.gs_cb) in update_cr_regs()
149 memset(&task->thread.per_user, 0, sizeof(task->thread.per_user)); in ptrace_disable()
150 memset(&task->thread.per_event, 0, sizeof(task->thread.per_event)); in ptrace_disable()
153 task->thread.per_flags = 0; in ptrace_disable()
253 tmp = child->thread.ufpu.fpc; in __peek_user()
1058 if (!target->thread.gs_cb) { in s390_gs_cb_set()
1063 if (!target->thread.gs_cb) in s390_gs_cb_set()
1076 if (!target->thread.gs_cb) in s390_gs_cb_set()
1176 if (target->thread.ri_cb) { in s390_runtime_instr_set()
[all …]
/arch/parisc/kernel/
A Dasm-offsets.c49 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
50 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
51 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main()
52 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main()
53 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main()
54 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main()
55 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main()
56 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main()
128 DEFINE(TASK_PT_KSP, offsetof(struct task_struct, thread.regs.ksp)); in main()
129 DEFINE(TASK_PT_KPC, offsetof(struct task_struct, thread.regs.kpc)); in main()
[all …]
/arch/um/kernel/
A Dprocess.c73 to->thread.prev_sched = from; in __switch_to()
76 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to()
79 return current->thread.prev_sched; in __switch_to()
115 current->thread.prev_sched = NULL; in new_thread_handler()
117 fn = current->thread.request.thread.proc; in new_thread_handler()
118 arg = current->thread.request.thread.arg; in new_thread_handler()
139 current->thread.prev_sched = NULL; in fork_handler()
163 arch_copy_thread(&current->thread.arch, &p->thread.arch); in copy_thread()
165 get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp); in copy_thread()
166 p->thread.request.thread.proc = args->fn; in copy_thread()
[all …]
/arch/powerpc/kernel/
A Dprocess.c213 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp()
264 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
383 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) { in enable_kernel_spe()
692 thread->debug.iac1 = thread->debug.iac2 = 0; in set_debug_reg_defaults()
694 thread->debug.iac3 = thread->debug.iac4 = 0; in set_debug_reg_defaults()
696 thread->debug.dac1 = thread->debug.dac2 = 0; in set_debug_reg_defaults()
698 thread->debug.dvc1 = thread->debug.dvc2 = 0; in set_debug_reg_defaults()
1645 current->thread.dexcr = current->thread.dexcr_onexec; in arch_setup_new_exec()
1884 p->thread.dscr_inherit = current->thread.dscr_inherit; in copy_thread()
1892 p->thread.hashkeyr = current->thread.hashkeyr; in copy_thread()
[all …]
A Dsignal_64.c91 if (tsk->thread.used_vr) in prepare_setup_sigcontext()
100 if (tsk->thread.used_vsr) in prepare_setup_sigcontext()
140 if (tsk->thread.used_vr) { in __unsafe_setup_sigcontext()
244 if (tsk->thread.used_vr) { in setup_tm_sigcontexts()
296 if (tsk->thread.used_vsr) { in setup_tm_sigcontexts()
397 tsk->thread.used_vr = true; in __unsafe_restore_sigcontext()
405 tsk->thread.vrsave = 0; in __unsafe_restore_sigcontext()
420 tsk->thread.used_vsr = true; in __unsafe_restore_sigcontext()
537 tsk->thread.vrsave = 0; in restore_tm_sigcontexts()
538 tsk->thread.ckvrsave = 0; in restore_tm_sigcontexts()
[all …]
/arch/sh/kernel/cpu/sh4/
A Dfpu.c248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
286 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
287 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
288 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
330 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
331 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
332 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
368 hx = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
[all …]
/arch/s390/include/asm/
A Dfpu.h160 struct thread_struct *thread = &current->thread; in load_user_fpu_regs() local
162 if (!thread->ufpu_flags) in load_user_fpu_regs()
164 load_fpu_state(&thread->ufpu, thread->ufpu_flags); in load_user_fpu_regs()
165 thread->ufpu_flags = 0; in load_user_fpu_regs()
170 save_fpu_state(&thread->ufpu, flags); in __save_user_fpu_regs()
176 struct thread_struct *thread = &current->thread; in save_user_fpu_regs() local
189 struct thread_struct *thread = &current->thread; in _kernel_fpu_begin() local
249 if (!thread->kfpu_flags) in save_kernel_fpu_regs()
251 save_fpu_state(&thread->kfpu, thread->kfpu_flags); in save_kernel_fpu_regs()
256 if (!thread->kfpu_flags) in restore_kernel_fpu_regs()
[all …]
/arch/arm64/mm/
A Dgcs.c64 tsk->thread.gcs_base = addr; in gcs_alloc_thread_stack()
65 tsk->thread.gcs_size = size; in gcs_alloc_thread_stack()
163 if (task->thread.gcs_base) in gcs_free()
164 vm_munmap(task->thread.gcs_base, task->thread.gcs_size); in gcs_free()
166 task->thread.gcspr_el0 = 0; in gcs_free()
167 task->thread.gcs_base = 0; in gcs_free()
168 task->thread.gcs_size = 0; in gcs_free()
194 if (task->thread.gcs_base || task->thread.gcspr_el0) in arch_set_shadow_stack_status()
206 task->thread.gcs_base = gcs; in arch_set_shadow_stack_status()
207 task->thread.gcs_size = size; in arch_set_shadow_stack_status()
[all …]
/arch/sparc/kernel/
A Dsigutil_32.c21 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
22 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
29 fpsave(&current->thread.float_regs[0], &current->thread.fsr, in save_fpu_state()
30 &current->thread.fpqueue[0], &current->thread.fpqdepth); in save_fpu_state()
36 &current->thread.float_regs[0], in save_fpu_state()
38 err |= __put_user(current->thread.fsr, &fpu->si_fsr); in save_fpu_state()
40 if (current->thread.fpqdepth != 0) in save_fpu_state()
42 &current->thread.fpqueue[0], in save_fpu_state()
73 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state()
75 if (current->thread.fpqdepth != 0) in restore_fpu_state()
[all …]
/arch/arm64/kernel/
A Dprocess.c292 current->thread.gcs_base = 0; in flush_gcs()
307 p->thread.gcs_base = 0; in copy_thread_gcs()
308 p->thread.gcs_size = 0; in copy_thread_gcs()
310 p->thread.gcs_el0_mode = current->thread.gcs_el0_mode; in copy_thread_gcs()
311 p->thread.gcs_el0_locked = current->thread.gcs_el0_locked; in copy_thread_gcs()
390 if (!dst->thread.sve_state) in copy_thread_za()
393 dst->thread.sme_state = kmemdup(src->thread.sme_state, in copy_thread_za()
474 p->thread.tpidr2_el0 = 0; in copy_thread()
594 if (current->thread.gcs_el0_mode != next->thread.gcs_el0_mode) in gcs_thread_switch()
673 if (current->thread.por_el0 != next->thread.por_el0) { in permission_overlay_switch()
[all …]
A Dfpsimd.c251 return task->thread.vl[type]; in task_get_vl()
257 task->thread.vl[type] = vl; in task_set_vl()
714 task->thread.uw.fpmr = 0; in task_smstop_sm()
729 kfree(task->thread.sve_state); in sve_free()
745 if (task->thread.sve_state) { in sve_alloc()
753 task->thread.sve_state = in sve_alloc()
1204 if (task->thread.sme_state) { in sme_alloc()
1212 task->thread.sme_state = in sme_alloc()
1416 if (!current->thread.sve_state || !current->thread.sme_state) { in do_sme_acc()
1633 current->thread.svcr = 0; in fpsimd_flush_thread()
[all …]
/arch/mips/kernel/
A Dasm-offsets.c122 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines()
123 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines()
124 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines()
125 OFFSET(THREAD_REG19, task_struct, thread.reg19); in output_thread_defines()
126 OFFSET(THREAD_REG20, task_struct, thread.reg20); in output_thread_defines()
134 thread.cp0_status); in output_thread_defines()
137 thread.cp0_badvaddr); in output_thread_defines()
139 thread.cp0_baduaddr); in output_thread_defines()
141 thread.error_code); in output_thread_defines()
150 OFFSET(THREAD_FPU, task_struct, thread.fpu); in output_thread_fpu_defines()
[all …]
/arch/m68k/kernel/
A Dprocess.c96 current->thread.fc = USER_DATA; in flush_thread()
161 p->thread.fc = USER_DATA; in copy_thread()
170 p->thread.usp = 0; in copy_thread()
177 p->thread.usp = usp ?: rdusp(); in copy_thread()
187 if (!CPU_IS_060 ? p->thread.fpstate[0] : p->thread.fpstate[2]) { in copy_thread()
194 : "m" (p->thread.fp[0]), in copy_thread()
195 "m" (p->thread.fpcntl[0]), in copy_thread()
196 "m" (p->thread.fpcntl[1]), in copy_thread()
197 "m" (p->thread.fpcntl[2]) in copy_thread()
203 : "m" (p->thread.fp[0]), in copy_thread()
[all …]
/arch/s390/mm/
A Dpfault.c145 if (tsk->thread.pfault_wait == 1) { in pfault_interrupt()
153 tsk->thread.pfault_wait = 0; in pfault_interrupt()
154 list_del(&tsk->thread.list); in pfault_interrupt()
168 tsk->thread.pfault_wait = -1; in pfault_interrupt()
174 if (tsk->thread.pfault_wait == 1) { in pfault_interrupt()
183 tsk->thread.pfault_wait = 0; in pfault_interrupt()
193 tsk->thread.pfault_wait = 1; in pfault_interrupt()
213 struct thread_struct *thread, *next; in pfault_cpu_dead() local
218 thread->pfault_wait = 0; in pfault_cpu_dead()
219 list_del(&thread->list); in pfault_cpu_dead()
[all …]
/arch/m68k/mm/
A Dfault.c29 signo = current->thread.signo; in send_fault_sig()
30 si_code = current->thread.code; in send_fault_sig()
191 current->thread.signo = SIGBUS; in do_page_fault()
192 current->thread.faddr = address; in do_page_fault()
196 current->thread.signo = SIGBUS; in do_page_fault()
197 current->thread.code = BUS_ADRERR; in do_page_fault()
198 current->thread.faddr = address; in do_page_fault()
204 current->thread.signo = SIGSEGV; in do_page_fault()
206 current->thread.faddr = address; in do_page_fault()
210 current->thread.signo = SIGSEGV; in do_page_fault()
[all …]

Completed in 44 milliseconds

12345678910>>...15