Searched refs:thread (Results 1 - 25 of 381) sorted by relevance

1234567891011>>

/arch/mips/include/asm/
H A Dasmmacro-64.h16 .macro cpu_save_nonscratch thread
17 LONG_S s0, THREAD_REG16(\thread)
18 LONG_S s1, THREAD_REG17(\thread)
19 LONG_S s2, THREAD_REG18(\thread)
20 LONG_S s3, THREAD_REG19(\thread)
21 LONG_S s4, THREAD_REG20(\thread)
22 LONG_S s5, THREAD_REG21(\thread)
23 LONG_S s6, THREAD_REG22(\thread)
24 LONG_S s7, THREAD_REG23(\thread)
25 LONG_S sp, THREAD_REG29(\thread)
[all...]
H A Dasmmacro-32.h15 .macro fpu_save_single thread tmp=t0
19 swc1 $f0, THREAD_FPR0_LS64(\thread)
20 swc1 $f1, THREAD_FPR1_LS64(\thread)
21 swc1 $f2, THREAD_FPR2_LS64(\thread)
22 swc1 $f3, THREAD_FPR3_LS64(\thread)
23 swc1 $f4, THREAD_FPR4_LS64(\thread)
24 swc1 $f5, THREAD_FPR5_LS64(\thread)
25 swc1 $f6, THREAD_FPR6_LS64(\thread)
26 swc1 $f7, THREAD_FPR7_LS64(\thread)
27 swc1 $f8, THREAD_FPR8_LS64(\thread)
[all...]
H A Ddsp.h45 tsk->thread.dsp.dspr[0] = mfhi1(); \
46 tsk->thread.dsp.dspr[1] = mflo1(); \
47 tsk->thread.dsp.dspr[2] = mfhi2(); \
48 tsk->thread.dsp.dspr[3] = mflo2(); \
49 tsk->thread.dsp.dspr[4] = mfhi3(); \
50 tsk->thread.dsp.dspr[5] = mflo3(); \
51 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \
62 mthi1(tsk->thread.dsp.dspr[0]); \
63 mtlo1(tsk->thread.dsp.dspr[1]); \
64 mthi2(tsk->thread
[all...]
H A Dasmmacro.h59 .macro fpu_save_16even thread tmp=t0
63 sdc1 $f0, THREAD_FPR0_LS64(\thread)
64 sdc1 $f2, THREAD_FPR2_LS64(\thread)
65 sdc1 $f4, THREAD_FPR4_LS64(\thread)
66 sdc1 $f6, THREAD_FPR6_LS64(\thread)
67 sdc1 $f8, THREAD_FPR8_LS64(\thread)
68 sdc1 $f10, THREAD_FPR10_LS64(\thread)
69 sdc1 $f12, THREAD_FPR12_LS64(\thread)
70 sdc1 $f14, THREAD_FPR14_LS64(\thread)
71 sdc1 $f16, THREAD_FPR16_LS64(\thread)
[all...]
/arch/powerpc/include/asm/
H A Dtm.h13 extern void do_load_up_transact_fpu(struct thread_struct *thread);
14 extern void do_load_up_transact_altivec(struct thread_struct *thread);
18 extern void tm_reclaim(struct thread_struct *thread,
21 extern void tm_recheckpoint(struct thread_struct *thread,
24 extern void tm_save_sprs(struct thread_struct *thread);
25 extern void tm_restore_sprs(struct thread_struct *thread);
H A Dswitch_to.h89 t->thread.ebbrr = 0;
90 t->thread.ebbhr = 0;
91 t->thread.bescr = 0;
92 t->thread.mmcr2 = 0;
93 t->thread.mmcr0 = 0;
94 t->thread.siar = 0;
95 t->thread.sdar = 0;
96 t->thread.sier = 0;
97 t->thread.used_ebb = 0;
/arch/m32r/include/asm/
H A Dswitch_to.h45 "r" (&(prev->thread.sp)), "r" (&(next->thread.sp)), \
46 "r" (&(prev->thread.lr)), "r" (&(next->thread.lr)) \
/arch/mn10300/include/asm/
H A Dswitch_to.h24 if ((prev)->thread.fpu_flags & THREAD_HAS_FPU) { \
25 (prev)->thread.fpu_flags &= ~THREAD_HAS_FPU; \
26 (prev)->thread.uregs->epsw &= ~EPSW_FE; \
27 fpu_save(&(prev)->thread.fpu_state); \
43 current->thread.wchan = (u_long) __builtin_return_address(0); \
44 (last) = __switch_to(&(prev)->thread, &(next)->thread, (prev)); \
46 current->thread.wchan = 0; \
H A Dfpu.h41 : "i"(THREAD_USING_FPU), "a"(&tsk->thread.fpu_flags)
50 : "i"(THREAD_USING_FPU), "a"(&tsk->thread.fpu_flags)
54 #define is_using_fpu(tsk) ((tsk)->thread.fpu_flags & THREAD_USING_FPU)
67 if (tsk->thread.fpu_flags & THREAD_HAS_FPU) {
68 fpu_save(&tsk->thread.fpu_state);
69 tsk->thread.fpu_flags &= ~THREAD_HAS_FPU;
70 tsk->thread.uregs->epsw &= ~EPSW_FE;
74 fpu_save(&tsk->thread.fpu_state);
97 if (tsk->thread.fpu_flags & THREAD_HAS_FPU) {
98 tsk->thread
[all...]
/arch/x86/um/
H A Dtls_64.c10 * If CLONE_SETTLS is set, we need to save the thread id
14 t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];
/arch/c6x/include/asm/
H A Dswitch_to.h26 current->thread.wchan = (u_long) __builtin_return_address(0); \
27 (last) = __switch_to(&(prev)->thread, \
28 &(next)->thread, (prev)); \
30 current->thread.wchan = 0; \
/arch/frv/include/asm/
H A Dswitch_to.h29 (prev)->thread.sched_lr = \
31 (last) = __switch_to(&(prev)->thread, &(next)->thread, (prev)); \
/arch/metag/include/asm/
H A Dhwthread.h19 * Each hardware thread's Control Unit registers are memory-mapped
20 * and can therefore be accessed by any other hardware thread.
22 * This helper function returns the memory address where "thread"'s
26 void __iomem *__CU_addr(unsigned int thread, unsigned int regnum) argument
30 WARN_ON(thread == BAD_HWTHREAD_ID);
34 thread_offset = TnUCTRX_STRIDE * thread;
/arch/sh/include/asm/
H A Dswitch_to_64.h27 struct pt_regs *regs = next->thread.uregs; \
30 last = sh64_switch_to(prev, &prev->thread, next, \
31 &next->thread); \
H A Dswitch_to_32.h7 (!!(tsk->thread.dsp_status.status & SR_DSP))
12 (u32 *)&tsk->thread.dsp_status; \
35 (u32 *)&tsk->thread.dsp_status + 14; \
82 __ts1 = (u32 *)&prev->thread.sp; \
83 __ts2 = (u32 *)&prev->thread.pc; \
86 __ts6 = (u32 *)&next->thread.sp; \
87 __ts7 = next->thread.pc; \
/arch/score/kernel/
H A Dptrace.c180 child->thread.single_step = 1;
181 child->thread.ss_nextcnt = 1;
191 child->thread.ss_nextcnt = 2;
198 child->thread.ss_nextcnt = 2;
211 child->thread.ss_nextcnt = 2;
220 child->thread.ss_nextcnt = 2;
228 if (child->thread.ss_nextcnt == 1) {
240 child->thread.insn1_type = 0;
241 child->thread.addr1 = epc;
243 child->thread
[all...]
/arch/mn10300/kernel/
H A Dfpu.c52 info.si_addr = (void *) tsk->thread.uregs->pc;
57 fpcr = tsk->thread.fpu_state.fpcr;
88 if (tsk->thread.fpu_flags & THREAD_HAS_FPU) {
89 fpu_save(&tsk->thread.fpu_state);
90 tsk->thread.uregs->epsw &= ~EPSW_FE;
91 tsk->thread.fpu_flags &= ~THREAD_HAS_FPU;
95 fpu_save(&tsk->thread.fpu_state);
96 fpu_state_owner->thread.uregs->epsw &= ~EPSW_FE;
108 &tsk->thread.fpu_state,
125 if (tsk->thread
[all...]
/arch/sh/kernel/
H A Dprocess.c19 * current task into the new thread.
28 if (src->thread.xstate) {
29 dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep,
31 if (!dst->thread.xstate)
33 memcpy(dst->thread.xstate, src->thread.xstate, xstate_size);
41 if (tsk->thread.xstate) {
42 kmem_cache_free(task_xstate_cachep, tsk->thread.xstate);
43 tsk->thread.xstate = NULL;
/arch/metag/kernel/
H A Dprocess.c188 memset(&tsk->thread.kernel_context, 0,
189 sizeof(tsk->thread.kernel_context));
191 tsk->thread.kernel_context = __TBISwitchInit(kernel_context,
198 * if kernel thread becomes a userspace thread in the future
208 tsk->thread.int_depth = 2;
221 tsk->thread.int_depth = 1;
228 tsk->thread.tls_ptr =
232 if (tsk->thread.fpu_context) {
235 ctx = kmemdup(tsk->thread
259 alloc_fpu_context(struct thread_struct *thread) argument
265 clear_fpu(struct thread_struct *thread) argument
272 clear_fpu(struct thread_struct *thread) argument
278 clear_dsp(struct thread_struct *thread) argument
292 clear_dsp(struct thread_struct *thread) argument
[all...]
/arch/s390/include/asm/
H A Dswitch_to.h144 if (task->thread.vxrs)
145 save_vx_regs(task->thread.vxrs);
148 save_fp_regs(task->thread.fp_regs.fprs);
154 if (task->thread.vxrs)
155 restore_vx_regs(task->thread.vxrs);
158 restore_fp_regs(task->thread.fp_regs.fprs);
177 save_fp_ctl(&prev->thread.fp_regs.fpc); \
179 save_access_regs(&prev->thread.acrs[0]); \
180 save_ri_cb(prev->thread.ri_cb); \
184 restore_fp_ctl(&next->thread
[all...]
/arch/s390/kernel/
H A Druntime_instr.c56 if (!task->thread.ri_cb)
59 kfree(task->thread.ri_cb);
60 task->thread.ri_signum = 0;
61 task->thread.ri_cb = NULL;
74 if (!current->thread.ri_cb)
76 if (current->thread.ri_signum < SIGRTMIN ||
77 current->thread.ri_signum > SIGRTMAX) {
83 info.si_signo = current->thread.ri_signum;
92 send_sig_info(current->thread.ri_signum, &info, current);
113 if (!current->thread
[all...]
H A Dprocess.c40 * Return saved PC of a blocked thread. used in kernel/sched.
55 sf = (struct stack_frame *) (tsk->thread.ksp & PSW_ADDR_INSN);
67 * Free current thread data structures etc..
93 p->thread.ksp = (unsigned long) frame;
94 /* Save access registers to new thread structure. */
95 save_access_regs(&p->thread.acrs[0]);
97 p->thread.mm_segment = get_fs();
99 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user));
100 memset(&p->thread
[all...]
/arch/sparc/kernel/
H A Dsigutil_32.c20 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
21 &current->thread.fpqueue[0], &current->thread.fpqdepth);
28 fpsave(&current->thread.float_regs[0], &current->thread.fsr,
29 &current->thread.fpqueue[0], &current->thread.fpqdepth);
35 &current->thread.float_regs[0],
37 err |= __put_user(current->thread
[all...]
/arch/powerpc/kernel/
H A Dprocess.c81 * If we are saving the current thread's registers, and the
82 * thread is in a transactional state, set the TIF_RESTORE_TM
86 if (tsk == current && tsk->thread.regs &&
87 MSR_TM_ACTIVE(tsk->thread.regs->msr) &&
89 tsk->thread.tm_orig_msr = tsk->thread.regs->msr;
99 * If we are saving the current thread's registers, and the
100 * thread is in a transactional state, set the TIF_RESTORE_TM
104 if (tsk == current && tsk->thread.regs &&
105 MSR_TM_ACTIVE(tsk->thread
358 set_debug_reg_defaults(struct thread_struct *thread) argument
426 set_debug_reg_defaults(struct thread_struct *thread) argument
625 tm_recheckpoint(struct thread_struct *thread, unsigned long orig_msr) argument
[all...]
/arch/arm/include/asm/
H A Ddomain.h73 struct thread_info *thread = current_thread_info(); \
74 unsigned int domain = thread->cpu_domain; \
76 thread->cpu_domain = domain | domain_val(dom, type); \
77 set_domain(thread->cpu_domain); \

Completed in 490 milliseconds

1234567891011>>