Home
last modified time | relevance | path

Searched refs:fpt (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/arch/sparc/math-emu/
Dmath_32.c143 int do_mathemu(struct pt_regs *regs, struct task_struct *fpt) in do_mathemu() argument
171 printk("fpqdepth is %ld\n", fpt->thread.fpqdepth); in do_mathemu()
172 for (i = 0; i < fpt->thread.fpqdepth; i++) in do_mathemu()
173 printk("%d: %08lx at %08lx\n", i, fpt->thread.fpqueue[i].insn, in do_mathemu()
174 (unsigned long)fpt->thread.fpqueue[i].insn_addr); in do_mathemu()
177 if (fpt->thread.fpqdepth == 0) { /* no queue, guilty insn is at regs->pc */ in do_mathemu()
182 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
193 for (i = 0; i < fpt->thread.fpqdepth; i++) { in do_mathemu()
194 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
200 fpt->thread.fsr &= ~(0x3000 | FSR_CEXC_MASK); in do_mathemu()
[all …]
/linux-2.6.39/arch/sparc/kernel/
Dtraps_32.c234 struct task_struct *fpt = last_task_used_math; local
236 struct task_struct *fpt = current; local
244 if(!fpt) {
246 if (!test_tsk_thread_flag(fpt, TIF_USEDFPU)) {
252 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr,
253 &fpt->thread.fpqueue[0], &fpt->thread.fpqdepth);
255 printk("Hmm, FP exception, fsr was %016lx\n", fpt->thread.fsr);
258 switch ((fpt->thread.fsr & 0x1c000)) {
267 ret = do_mathemu(regs, fpt);
289 clear_tsk_thread_flag(fpt, TIF_USEDFPU);
[all …]