Home
last modified time | relevance | path

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

/arch/sparc/kernel/
Dtraps_32.c206 struct task_struct *fpt = last_task_used_math; local
208 struct task_struct *fpt = current; local
216 if(!fpt) {
218 if (!test_tsk_thread_flag(fpt, TIF_USEDFPU)) {
224 fpsave(&fpt->thread.float_regs[0], &fpt->thread.fsr,
225 &fpt->thread.fpqueue[0], &fpt->thread.fpqdepth);
227 printk("Hmm, FP exception, fsr was %016lx\n", fpt->thread.fsr);
230 switch ((fpt->thread.fsr & 0x1c000)) {
239 ret = do_mathemu(regs, fpt);
261 clear_tsk_thread_flag(fpt, TIF_USEDFPU);
[all …]
/arch/sparc/math-emu/
Dmath_32.c144 int do_mathemu(struct pt_regs *regs, struct task_struct *fpt) in do_mathemu() argument
172 printk("fpqdepth is %ld\n", fpt->thread.fpqdepth); in do_mathemu()
173 for (i = 0; i < fpt->thread.fpqdepth; i++) in do_mathemu()
174 printk("%d: %08lx at %08lx\n", i, fpt->thread.fpqueue[i].insn, in do_mathemu()
175 (unsigned long)fpt->thread.fpqueue[i].insn_addr); in do_mathemu()
178 if (fpt->thread.fpqdepth == 0) { /* no queue, guilty insn is at regs->pc */ in do_mathemu()
183 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
194 for (i = 0; i < fpt->thread.fpqdepth; i++) { in do_mathemu()
195 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread.fsr), fpt->thread.float_regs); in do_mathemu()
201 fpt->thread.fsr &= ~(0x3000 | FSR_CEXC_MASK); in do_mathemu()
[all …]
/arch/sparc/include/asm/
Dprocessor_32.h101 int do_mathemu(struct pt_regs *regs, struct task_struct *fpt);