Lines Matching +full:sw +full:- +full:exception
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
9 * linux/arch/math-emu/driver.c.c
14 * Copyright (C) 2001 Hewlett-Packard <bame@debian.org>
20 #include "math-emu.h"
25 #define extru(r,pos,len) (((r) >> (31-(pos))) & (( 1 << (len)) - 1))
29 /* Format of the floating-point exception registers. */
31 unsigned int exception : 6; member
65 /* Handle a floating point exception. Return zero if the faulting
71 unsigned int orig_sw, sw; in handle_fpe() local
82 memcpy(frcopy, regs->fr, sizeof regs->fr); in handle_fpe()
88 printk(KERN_DEBUG "FP VZOUICxxxxCQCQCQCQCQCRMxxTDVZOUI ->\n "); in handle_fpe()
96 memcpy(&sw, frcopy, sizeof(sw)); in handle_fpe()
100 printbinary(sw, 32); in handle_fpe()
104 memcpy(regs->fr, frcopy, sizeof regs->fr); in handle_fpe()
107 (void __user *) regs->iaoq[0]); in handle_fpe()
108 return -1; in handle_fpe()
111 return signalcode ? -1 : 0; in handle_fpe()