/linux-2.4.37.9/include/asm-mips/ |
D | asmmacro.h | 26 #define FPU_SAVE_DOUBLE(thread, tmp) \ argument 28 sdc1 $f0, (THREAD_FPU + 0x000)(thread); \ 29 sdc1 $f2, (THREAD_FPU + 0x010)(thread); \ 30 sdc1 $f4, (THREAD_FPU + 0x020)(thread); \ 31 sdc1 $f6, (THREAD_FPU + 0x030)(thread); \ 32 sdc1 $f8, (THREAD_FPU + 0x040)(thread); \ 33 sdc1 $f10, (THREAD_FPU + 0x050)(thread); \ 34 sdc1 $f12, (THREAD_FPU + 0x060)(thread); \ 35 sdc1 $f14, (THREAD_FPU + 0x070)(thread); \ 36 sdc1 $f16, (THREAD_FPU + 0x080)(thread); \ [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | asmmacro.h | 27 .macro fpu_save_16even thread tmp 29 sdc1 $f2, (THREAD_FPU + 0x010)(\thread) 30 sdc1 $f4, (THREAD_FPU + 0x020)(\thread) 31 sdc1 $f6, (THREAD_FPU + 0x030)(\thread) 32 sdc1 $f8, (THREAD_FPU + 0x040)(\thread) 33 sdc1 $f10, (THREAD_FPU + 0x050)(\thread) 34 sdc1 $f12, (THREAD_FPU + 0x060)(\thread) 35 sdc1 $f14, (THREAD_FPU + 0x070)(\thread) 36 sdc1 $f16, (THREAD_FPU + 0x080)(\thread) 37 sdc1 $f18, (THREAD_FPU + 0x090)(\thread) [all …]
|
/linux-2.4.37.9/arch/parisc/tools/ |
D | offset.c | 55 offset("#define TASK_REGS ", struct task_struct, thread.regs); in output_task_ptreg_defines() 56 offset("#define TASK_PT_PSW ", struct task_struct, thread.regs.gr[ 0]); in output_task_ptreg_defines() 57 offset("#define TASK_PT_GR1 ", struct task_struct, thread.regs.gr[ 1]); in output_task_ptreg_defines() 58 offset("#define TASK_PT_GR2 ", struct task_struct, thread.regs.gr[ 2]); in output_task_ptreg_defines() 59 offset("#define TASK_PT_GR3 ", struct task_struct, thread.regs.gr[ 3]); in output_task_ptreg_defines() 60 offset("#define TASK_PT_GR4 ", struct task_struct, thread.regs.gr[ 4]); in output_task_ptreg_defines() 61 offset("#define TASK_PT_GR5 ", struct task_struct, thread.regs.gr[ 5]); in output_task_ptreg_defines() 62 offset("#define TASK_PT_GR6 ", struct task_struct, thread.regs.gr[ 6]); in output_task_ptreg_defines() 63 offset("#define TASK_PT_GR7 ", struct task_struct, thread.regs.gr[ 7]); in output_task_ptreg_defines() 64 offset("#define TASK_PT_GR8 ", struct task_struct, thread.regs.gr[ 8]); in output_task_ptreg_defines() [all …]
|
/linux-2.4.37.9/arch/s390/math-emu/ |
D | math.c | 153 mode = current->thread.fp_regs.fpc & 3; in emu_axbr() 154 cvt.w.high = current->thread.fp_regs.fprs[rx].ui; in emu_axbr() 155 cvt.w.low = current->thread.fp_regs.fprs[rx+2].ui; in emu_axbr() 157 cvt.w.high = current->thread.fp_regs.fprs[ry].ui; in emu_axbr() 158 cvt.w.low = current->thread.fp_regs.fprs[ry+2].ui; in emu_axbr() 162 current->thread.fp_regs.fprs[rx].ui = cvt.w.high; in emu_axbr() 163 current->thread.fp_regs.fprs[rx+2].ui = cvt.w.low; in emu_axbr() 174 mode = current->thread.fp_regs.fpc & 3; in emu_adbr() 175 FP_UNPACK_DP(DA, ¤t->thread.fp_regs.fprs[rx].d); in emu_adbr() 176 FP_UNPACK_DP(DB, ¤t->thread.fp_regs.fprs[ry].d); in emu_adbr() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | i387.c | 49 memcpy(&tsk->thread.i387, &empty_fpu_state, sizeof(union i387_union)); in load_empty_fpu() 75 : "=m" (tsk->thread.i387.fxsave) ); in __save_init_fpu() 76 if (tsk->thread.i387.fxsave.swd & (1<<7)) in __save_init_fpu() 82 : "=m" (tsk->thread.i387.fsave) ); in __save_init_fpu() 108 : : "m" (tsk->thread.i387.fxsave) ); in restore_fpu() 111 : : "m" (tsk->thread.i387.fsave) ); in restore_fpu() 186 return tsk->thread.i387.fxsave.cwd; in get_fpu_cwd() 188 return (unsigned short)tsk->thread.i387.fsave.cwd; in get_fpu_cwd() 195 return tsk->thread.i387.fxsave.swd; in get_fpu_swd() 197 return (unsigned short)tsk->thread.i387.fsave.swd; in get_fpu_swd() [all …]
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | process.c | 85 if ( tsk->thread.magic != THREAD_MAGIC ) in check_stack() 88 printk("thread.magic bad: %08x\n", tsk->thread.magic); in check_stack() 96 if ( (tsk->thread.ksp > stack_top) || (tsk->thread.ksp < tsk_top) ) in check_stack() 101 tsk_top, tsk->thread.ksp, stack_top); in check_stack() 146 memcpy(vrregs, ¤t->thread.vr[0], sizeof(*vrregs)); in dump_altivec() 154 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec() 168 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp() 182 memcpy(fpregs, ¤t->thread.fpr[0], sizeof(*fpregs)); in dump_fpu() 210 if ( prev->thread.regs && (prev->thread.regs->msr & MSR_FP) ) in _switch_to() 224 if ((prev->thread.regs && (prev->thread.regs->msr & MSR_VEC))) in _switch_to() [all …]
|
D | ptrace.c | 53 && task->thread.regs != NULL) in get_reg() 54 return ((unsigned long *)task->thread.regs)[regno]; in get_reg() 64 if (regno <= PT_MQ && task->thread.regs != NULL) { in put_reg() 67 | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 68 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg() 88 if (__put_user(task->thread.vr[i].u[j], data)) in get_vrregs() 93 if (__put_user(task->thread.vscr.u[i], data)) in get_vrregs() 97 if (__put_user(task->thread.vrsave, data)) in get_vrregs() 116 if (__get_user(task->thread.vr[i].u[j], data)) in set_vrregs() 121 if (__get_user(task->thread.vscr.u[i], data)) in set_vrregs() [all …]
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | process.c | 323 fp = tsk->thread.ksp; in show_trace_task() 349 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, 350 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); 361 current->thread.w_saved = 0; 364 current->thread.new_signal = 0; 372 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, 373 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); 382 current->thread.current_ds = USER_DS; 383 if (current->thread.flags & SPARC_FLAG_KTHREAD) { 384 current->thread.flags &= ~SPARC_FLAG_KTHREAD; [all …]
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | sys_sparc.c | 62 if (current->thread.flags & SPARC_FLAG_32BIT) in arch_get_unmapped_area() 143 if ((current->thread.flags & SPARC_FLAG_32BIT) && in sparc_brk() 301 if (current->thread.flags & SPARC_FLAG_32BIT) { in sys_mmap() 345 if (current->thread.flags & SPARC_FLAG_32BIT) in sys64_mremap() 412 if ((current->thread.flags & SPARC_FLAG_32BIT) != 0) { in sparc_breakpoint() 465 if ((current->thread.flags & SPARC_FLAG_32BIT) != 0) { in solaris_syscall() 485 if ((current->thread.flags & SPARC_FLAG_32BIT) != 0) { in sunos_syscall() 505 if (!current->thread.utraps) { in sys_utrap_install() 509 if (put_user((utrap_handler_t)(current->thread.utraps[type]), old_p)) in sys_utrap_install() 519 if (!current->thread.utraps) { in sys_utrap_install() [all …]
|
D | ptrace.c | 56 if (current->thread.flags & SPARC_FLAG_32BIT) { in pt_succ_return_linux() 112 if (current->thread.flags & SPARC_FLAG_32BIT) { in do_ptrace() 188 if (!(child->thread.flags & SPARC_FLAG_32BIT) && in do_ptrace() 210 if (current->thread.flags & SPARC_FLAG_32BIT) { in do_ptrace() 235 if (current->thread.flags & SPARC_FLAG_32BIT) { in do_ptrace() 257 struct pt_regs *cregs = child->thread.kregs; in do_ptrace() 281 struct pt_regs *cregs = child->thread.kregs; in do_ptrace() 285 if ((child->thread.flags & SPARC_FLAG_32BIT) != 0) in do_ptrace() 308 struct pt_regs *cregs = child->thread.kregs; in do_ptrace() 341 struct pt_regs *cregs = child->thread.kregs; in do_ptrace() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | process.c | 84 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp() 98 memcpy(fpregs, ¤t->thread.fpr[0], sizeof(*fpregs)); in dump_fpu() 108 memcpy(vrregs, ¤t->thread.vr[0], sizeof(*vrregs)); in dump_altivec() 117 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec() 141 new->comm,new->pid,new->thread.regs->nip,new->processor, in _switch_to() 154 if ( prev->thread.regs && (prev->thread.regs->msr & MSR_FP) ) in _switch_to() 168 if ((prev->thread.regs && (prev->thread.regs->msr & MSR_VEC))) in _switch_to() 174 new_thread = &new->thread; in _switch_to() 175 old_thread = ¤t->thread; in _switch_to() 193 printk("Last syscall: %ld ", current->thread.last_syscall); in show_regs() [all …]
|
D | ptrace32.c | 40 if(copy_to_user((void *)data,&task->thread.vr[0], in get_vrregs32() 46 if (put_user(task->thread.vrsave[1],((u32 *)data))) in get_vrregs32() 56 if(copy_from_user(&task->thread.vr[0],(void *)data, in set_vrregs32() 62 if (get_user(task->thread.vrsave[1],((u32 *)data))) in set_vrregs32() 84 return ((unsigned long *)task->thread.regs)[regno]; in get_reg() 97 data = (data & MSR_DEBUGCHANGE) | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 98 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg() 107 struct pt_regs *regs = task->thread.regs; in set_single_step() 115 struct pt_regs *regs = task->thread.regs; in clear_single_step() 218 if (child->thread.regs->msr & MSR_FP) in sys32_ptrace() [all …]
|
D | ptrace.c | 50 return ((unsigned long *)task->thread.regs)[regno]; in get_reg() 63 | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 64 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg() 76 return (copy_to_user((void *)data,&task->thread.vr[0], in get_vrregs() 86 return (copy_from_user(&task->thread.vr[0],(void *)data, in set_vrregs() 95 struct pt_regs *regs = task->thread.regs; in set_single_step() 103 struct pt_regs *regs = task->thread.regs; in clear_single_step() 185 if (child->thread.regs->msr & MSR_FP) in sys_ptrace() 187 tmp = ((unsigned long *)child->thread.fpr)[index - PT_FPR0]; in sys_ptrace() 218 if (child->thread.regs->msr & MSR_FP) in sys_ptrace() [all …]
|
/linux-2.4.37.9/drivers/acpi/executer/ |
D | exmutex.c | 69 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; in acpi_ex_unlink_mutex() local 72 if (!thread) { in acpi_ex_unlink_mutex() 84 thread->acquired_mutex_list = obj_desc->mutex.next; in acpi_ex_unlink_mutex() 105 struct acpi_thread_state *thread) in acpi_ex_link_mutex() argument 110 list_head = thread->acquired_mutex_list; in acpi_ex_link_mutex() 125 thread->acquired_mutex_list = obj_desc; in acpi_ex_link_mutex() 160 if (!walk_state->thread) { in acpi_ex_acquire_mutex() 170 if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { in acpi_ex_acquire_mutex() 182 if ((obj_desc->mutex.owner_thread->thread_id == walk_state->thread->thread_id) || in acpi_ex_acquire_mutex() 204 obj_desc->mutex.owner_thread = walk_state->thread; in acpi_ex_acquire_mutex() [all …]
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | process.c | 443 if (me->thread.io_bitmap_ptr) { in exit_thread() 446 kfree(me->thread.io_bitmap_ptr); in exit_thread() 447 me->thread.io_bitmap_ptr = NULL; in exit_thread() 455 memset(tsk->thread.debugreg, 0, sizeof(unsigned long)*8); in flush_thread() 520 p->thread.rsp = (unsigned long) childregs; in copy_thread() 521 p->thread.rsp0 = (unsigned long) (childregs+1); in copy_thread() 522 p->thread.userrsp = current->thread.userrsp; in copy_thread() 524 p->thread.rip = (unsigned long) ret_from_fork; in copy_thread() 526 p->thread.fs = me->thread.fs; in copy_thread() 527 p->thread.gs = me->thread.gs; in copy_thread() [all …]
|
D | i387.c | 34 memset(&child->thread.i387.fxsave, 0, sizeof(struct i387_fxsave_struct)); in init_fpu() 35 child->thread.i387.fxsave.cwd = 0x37f; in init_fpu() 36 child->thread.i387.fxsave.mxcsr = 0x1f80; in init_fpu() 51 if (sizeof(struct user_i387_struct) != sizeof(tsk->thread.i387.fxsave)) in save_i387() 68 if (__copy_to_user(buf, &tsk->thread.i387.fxsave, in save_i387() 82 return __copy_to_user((void *)buf, &tsk->thread.i387.fxsave, in get_fpregs() 88 if (__copy_from_user(&tsk->thread.i387.fxsave, buf, in set_fpregs() 92 tsk->thread.i387.fxsave.mxcsr &= 0xffbf; in set_fpregs() 108 memcpy(fpu, &tsk->thread.i387.fxsave, sizeof(struct user_i387_struct)); in dump_fpu()
|
/linux-2.4.37.9/arch/mips/tools/ |
D | offset.c | 108 offset("#define THREAD_REG16 ", struct task_struct, thread.reg16); in output_thread_defines() 109 offset("#define THREAD_REG17 ", struct task_struct, thread.reg17); in output_thread_defines() 110 offset("#define THREAD_REG18 ", struct task_struct, thread.reg18); in output_thread_defines() 111 offset("#define THREAD_REG19 ", struct task_struct, thread.reg19); in output_thread_defines() 112 offset("#define THREAD_REG20 ", struct task_struct, thread.reg20); in output_thread_defines() 113 offset("#define THREAD_REG21 ", struct task_struct, thread.reg21); in output_thread_defines() 114 offset("#define THREAD_REG22 ", struct task_struct, thread.reg22); in output_thread_defines() 115 offset("#define THREAD_REG23 ", struct task_struct, thread.reg23); in output_thread_defines() 116 offset("#define THREAD_REG29 ", struct task_struct, thread.reg29); in output_thread_defines() 117 offset("#define THREAD_REG30 ", struct task_struct, thread.reg30); in output_thread_defines() [all …]
|
/linux-2.4.37.9/arch/m68k/mm/ |
D | fault.c | 26 siginfo.si_signo = current->thread.signo; in send_fault_sig() 27 siginfo.si_code = current->thread.code; in send_fault_sig() 28 siginfo.si_addr = (void *)current->thread.faddr; in send_fault_sig() 193 current->thread.signo = SIGBUS; in do_page_fault() 194 current->thread.faddr = address; in do_page_fault() 198 current->thread.signo = SIGBUS; in do_page_fault() 199 current->thread.code = BUS_ADRERR; in do_page_fault() 200 current->thread.faddr = address; in do_page_fault() 204 current->thread.signo = SIGSEGV; in do_page_fault() 205 current->thread.code = SEGV_MAPERR; in do_page_fault() [all …]
|
/linux-2.4.37.9/include/asm-arm/proc-armo/ |
D | uaccess.h | 31 current->thread.uaccess = fs == USER_DS ? &uaccess_user : &uaccess_kernel; in set_fs() 59 : "r" (x), "r" (addr), "r" (current->thread.uaccess->put_byte), \ 72 : "r" (x), "r" (addr), "r" (current->thread.uaccess->put_half), \ 85 : "r" (x), "r" (addr), "r" (current->thread.uaccess->put_word), \ 98 : "r" (addr), "r" (current->thread.uaccess->get_byte), "0" (err) \ 110 : "r" (addr), "r" (current->thread.uaccess->get_half), "0" (err) \ 122 : "r" (addr), "r" (current->thread.uaccess->get_word), "0" (err) \ 126 (n) = current->thread.uaccess->copy_from_user((to),(from),(n)) 129 (n) = current->thread.uaccess->copy_to_user((to),(from),(n)) 132 (sz) = current->thread.uaccess->clear_user((addr),(sz)) [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | i387.h | 65 #define get_fpu_mxcsr(t) ((t)->thread.i387.fxsave.mxcsr) 66 #define get_fpu_cwd(t) ((t)->thread.i387.fxsave.cwd) 67 #define get_fpu_fxsr_twd(t) ((t)->thread.i387.fxsave.twd) 68 #define get_fpu_swd(t) ((t)->thread.i387.fxsave.swd) 69 #define set_fpu_cwd(t,val) ((t)->thread.i387.fxsave.cwd = (val)) 70 #define set_fpu_swd(t,val) ((t)->thread.i387.fxsave.swd = (val)) 71 #define set_fpu_fxsr_twd(t,val) ((t)->thread.i387.fxsave.twd = (val)) 72 #define set_fpu_mxcsr(t,val) ((t)->thread.i387.fxsave.mxcsr = (val)&0xffbf) 119 : "=m" (tsk->thread.i387.fxsave)); in kernel_fpu_begin() 129 : "=m" (tsk->thread.i387.fxsave)); in save_init_fpu() [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | processor.h | 200 current->thread.wstate = (1 << 3); \ 201 if (current->thread.utraps) { \ 202 if (*(current->thread.utraps) < 2) \ 203 kfree (current->thread.utraps); \ 205 (*(current->thread.utraps))--; \ 206 current->thread.utraps = NULL; \ 240 current->thread.wstate = (2 << 3); \ 241 if (current->thread.utraps) { \ 242 if (*(current->thread.utraps) < 2) \ 243 kfree (current->thread.utraps); \ [all …]
|
/linux-2.4.37.9/arch/ia64/ia32/ |
D | ia32_support.c | 78 t->thread.eflag = eflag; in ia32_save_state() 79 t->thread.fsr = fsr; in ia32_save_state() 80 t->thread.fcr = fcr; in ia32_save_state() 81 t->thread.fir = fir; in ia32_save_state() 82 t->thread.fdr = fdr; in ia32_save_state() 83 ia64_set_kr(IA64_KR_IO_BASE, t->thread.old_iob); in ia32_save_state() 84 ia64_set_kr(IA64_KR_TSSD, t->thread.old_k1); in ia32_save_state() 94 eflag = t->thread.eflag; in ia32_load_state() 95 fsr = t->thread.fsr; in ia32_load_state() 96 fcr = t->thread.fcr; in ia32_load_state() [all …]
|
/linux-2.4.37.9/arch/mips/math-emu/ |
D | kernel_linkage.c | 48 current->thread.fpu.soft.sr = 0; in fpu_emulator_init_fpu() 50 current->thread.fpu.soft.regs[i] = SIGNALLING_NAN; in fpu_emulator_init_fpu() 68 __put_user(current->thread.fpu.soft.regs[i], in fpu_emulator_save_context() 71 err |= __put_user(current->thread.fpu.soft.sr, &sc->sc_fpc_csr); in fpu_emulator_save_context() 84 __get_user(current->thread.fpu.soft.regs[i], in fpu_emulator_restore_context() 87 err |= __get_user(current->thread.fpu.soft.sr, &sc->sc_fpc_csr); in fpu_emulator_restore_context() 105 __put_user(current->thread.fpu.soft.regs[i], in fpu_emulator_save_context32() 108 err |= __put_user(current->thread.fpu.soft.sr, &sc->sc_fpc_csr); in fpu_emulator_save_context32() 121 __get_user(current->thread.fpu.soft.regs[i], in fpu_emulator_restore_context32() 124 err |= __get_user(current->thread.fpu.soft.sr, &sc->sc_fpc_csr); in fpu_emulator_restore_context32()
|
/linux-2.4.37.9/arch/ppc/math-emu/ |
D | math.c | 236 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() 243 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() 251 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() 258 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() 264 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() 265 op1 = (void *)¤t->thread.fpr[(insn >> 11) & 0x1f]; in do_mathemu() 362 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() 363 op1 = (void *)¤t->thread.fpr[(insn >> 16) & 0x1f]; in do_mathemu() 364 op2 = (void *)¤t->thread.fpr[(insn >> 11) & 0x1f]; in do_mathemu() 368 op0 = (void *)¤t->thread.fpr[(insn >> 21) & 0x1f]; in do_mathemu() [all …]
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | process.c | 191 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_save_extra() 192 ia64_save_debug_regs(&task->thread.dbr[0]); in ia64_save_extra() 195 if ((task->thread.flags & IA64_THREAD_PM_VALID) != 0) in ia64_save_extra() 216 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_load_extra() 217 ia64_load_debug_regs(&task->thread.dbr[0]); in ia64_load_extra() 220 if ((task->thread.flags & IA64_THREAD_PM_VALID) != 0) in ia64_load_extra() 332 p->thread.ksp = (unsigned long) child_stack - 16; in copy_thread() 355 p->thread.flags = ((current->thread.flags & ~THREAD_FLAGS_TO_CLEAR) in copy_thread() 371 atomic_set(&p->thread.pfm_notifiers_check, 0); in copy_thread() 372 atomic_set(&p->thread.pfm_owners_check, 0); in copy_thread() [all …]
|