]> Pileus Git - ~andy/linux/blobdiff - arch/arm/vfp/vfp.h
[ARM] 3748/3: Correct error check in vfp_raise_exceptions
[~andy/linux] / arch / arm / vfp / vfp.h
index 4b97950984e9628c895bb83dda4a99ba8300bee9..5fbdf81a8aaf1a0543cd8c05951f809e2e4f484d 100644 (file)
@@ -353,3 +353,11 @@ u32 vfp_estimate_sqrt_significand(u32 exponent, u32 significand);
  * A special flag to tell the normalisation code not to normalise.
  */
 #define VFP_NAN_FLAG   0x100
+
+/*
+ * A bit pattern used to indicate the initial (unset) value of the
+ * exception mask, in case nothing handles an instruction.  This
+ * doesn't include the NAN flag, which get masked out before
+ * we check for an error.
+ */
+#define VFP_EXCEPTION_ERROR    ((u32)-1 & ~VFP_NAN_FLAG)